Smooth Slider

Fully customizable slider component with smooth and satisfying hover animations.

Examples

Implementation of smooth slider with Anime catalog

Popular Anime

Solo Leveling

Solo Leveling

2024 · 1 season · Crunchyroll

Solo Leveling
Ishura

Ishura

2024 · 1 season · Crunchyroll

Ishura
The Apothecary Diaries

The Apothecary Diaries

2023 · 2 seasons · Crunchyroll

The Apothecary Diaries
Zenshu

Zenshu

2023 · 1 season · Netflix

Zenshu
Sakamoto Days

Sakamoto Days

2024 · 1 season · Crunchyroll

Sakamoto Days
Dr. Stone

Dr. Stone

2019 · 3 seasons · Crunchyroll

Dr. Stone
Unnamed Memory

Unnamed Memory

2024 · 1 season · Crunchyroll

Unnamed Memory
I Got Married to the Male Lead

I Got Married to the Male Lead

2024 · 1 season · Crunchyroll

I Got Married to the Male Lead

Customized catalog of Anime

Custom Cards

I Got Married to the Male Lead

I Got Married to the Male Lead

2024 · 1 season · Crunchyroll

I Got Married to the Male Lead
Unnamed Memory

Unnamed Memory

2024 · 1 season · Crunchyroll

Unnamed Memory
Dr. Stone

Dr. Stone

2019 · 3 seasons · Crunchyroll

Dr. Stone
Sakamoto Days

Sakamoto Days

2024 · 1 season · Crunchyroll

Sakamoto Days
Zenshu

Zenshu

2023 · 1 season · Netflix

Zenshu

Installation

npx shadcn@latest add "https://aetherui.in/c/smooth-slider.json"

Component Props

You can customize the content of the smooth-slider by passing the following props to the component.

AnimatedSlider Props

PropTypeDefaultDescription
titlestringTitle of the slider.
childrenReactNodeContent to be displayed inside the slider.
classNamestring(none)Additional class names to be applied to the slider.
gapnumber (Optional)16Gap between the cards.
scrollAmountnumber (Optional)300Scroll amount of the slider.
...propsanyAdditional props to be passed to the slider.

AnimatedCard Props

PropTypeDefaultDescription
childrenReactNodeContent to be displayed inside the card.
classNamestring(none)Additional class names to be applied to the card.
defaultWidthstring (Optional)180pxDefault width of the card.
expandedWidthstring (Optional)320pxExpanded width of the card.
heightstring (Optional)270pxHeight of the card.
transitionDurationstring (Optional)0.4sTransition duration of the card.
transitionEasinglinear | ease | ease-in | ease-out | ease-in-out | cubic-bezier(number, number, number, number)easeTransition easing of the card.
...propsanyAdditional props to be passed to the card.

CardContent Props

PropTypeDefaultDescription
childrenReactNodeContent to be displayed inside the card.
classNamestring(none)Additional class names to be applied to the card.
defaultAspectRatiostring (Optional)aspect-[2/3]Default aspect ratio of the card.
expandedAspectRatiostring (Optional)aspect-videoExpanded aspect ratio of the card.
...propsanyAdditional props to be passed to the card.

OnHover Props

PropTypeDefaultDescription
childrenReactNodeContent to be displayed inside the card.
classNamestring(none)Additional class names to be applied to the card.
fadeInDurationstring (Optional)0.3sFade in duration of the card.
...propsanyAdditional props to be passed to the card.

DefaultView Props

PropTypeDefaultDescription
childrenReactNodeContent to be displayed inside the card.
classNamestringnoneAdditional class names to be applied to the card.
...propsanyAdditional props to be passed to the card.