A deck with depth
Five card positions scale, shift, and desaturate together on one smooth cubic-bezier curve, so every step feels physical.
Component 041Carousels
A white character card stacks anime portraits into a vertical deck: the active card blooms into color while neighbors fade to grayscale above and below.
Quick start
Save character-deck-slider.tsx in your components folder, then import it below. Requires React and Tailwind CSS.
import CharacterDeckSlider from "@/components/ui/character-deck-slider";
export default function CharactersPage() {
return <CharacterDeckSlider />;
}Behind the interaction
Five card positions scale, shift, and desaturate together on one smooth cubic-bezier curve, so every step feels physical.
Buttons, pagination lines, peeking-card clicks, vertical swipe, and arrow keys all move the same deck, with a polite live announcement.
Typed items, an onChange callback, optional looping, and embedded default artwork keep the copied file ready to use.
Keep exploring
An editorial tour of three classic microcars, with sliding cutouts, condensed typography, and an inset photographic archive.
Four personal browser worlds turn in 3D, with portraits, saved places, products, and bookmarks layered over matching colors.
Use the arrow keys, Home, or End, swipe the cards vertically, or choose a line to change character.
Flame Blade Wielder