
Infinite Carousel
Carousels
A 3D card carousel that fans ten membership-style cards into a layered stack, swings the front card away on each change, autoplays every five seconds, and tilts the front card towards the cursor.
Depth Card Stack shows one card at the front with two cards fanned out on each side behind it; the rest are hidden until they rotate in. Each change swings the front card sideways in 3D while the others slide into their new slots.
Use Depth Card Stack for a showcase of collectible or membership-style cards, such as early-access passes. The ten cards, the section heading and the "claimed" caption under the stack are hard-coded in the component, so edit the cards array in the source to change them; the props only control timing and the pointer effect.
The main risk is treating it like a content list: only five cards are visible at a time, the rest are hidden, and the stack advances on its own every five seconds unless the cursor is over the front card. Card text is plain paragraphs with no headings or links, and on mobile the same 3D stack stays, with the prev/next buttons moved below it.
import DepthCardStack from '@/components/effects/depth-card-stack' const Page = () => { return ( <> <DepthCardStack/> </> )} export default Page A product launch page can use Depth Card Stack to show early-access membership passes, each with a name, colour, join date and member number, cycling automatically while a caption below names who claimed the current card. The cards are display pieces: they contain plain text only, with no headings or links, so put sign-up actions and details in ordinary content beside the stack.
Not for long comparison sets, dense pricing matrices, or card groups where users need to scan every item quickly.
The stack animates transforms and opacity with GSAP, and the pointer tilt updates the front card only. All ten cards stay mounted and each loads a texture image, so if you add more cards, keep texture files small; the autoplay interval keeps running while the section is offscreen.
Card text is plain paragraphs with no headings, links or focusable elements, so the cards are read in source order but cannot be focused. The prev/next buttons are real buttons with aria-labels. On mobile (640px and below) the same overlapping 3D stack stays at full width, with larger prev/next buttons below it; there is no swipe gesture.
| Prop | Type | Default | Description |
|---|---|---|---|
duration | number | 0.55 | Card navigation transition duration. |
mouseInteraction | boolean | true | Enables pointer tilt and texture reveal on the active card. |
lerp | number | 0.18 | Pointer-follow smoothing amount; higher values track faster. Needs Mouse Interaction on. |
smoothness | number | 0.4 | Hover enter/leave smoothing duration for card tilt and texture reveal. Needs Mouse Interaction on. |
Use it when a set of membership, pass or collectible-style cards should cycle through a layered 3D stack, either on its own every five seconds or with the prev/next buttons.
The prev/next controls are buttons with aria-labels, but the cards themselves are plain text with no headings or focusable elements, and the stack autoplays every five seconds with no pause control beyond hovering the front card. If the cards must carry real content, add headings, links and a pause button in your copy of the source.
It keeps the same overlapping 3D carousel, sized to the screen width, and moves larger prev/next buttons below the stack. There is no swipe gesture or vertical layout, and the hover tilt does not apply to touch.
Yes, by editing the cards array in the component source: each entry has a name, member number, join date, colour, caption text and texture image. There is no cards prop, and the card layout itself ("hero", "Early Access", Joined, Member) is fixed in the markup.
With reduced motion, the pointer tilt and texture reveal are switched off, and each card change still plays the swing transition, shortened to 0.15 seconds. Autoplay keeps advancing every five seconds.
Need a custom effect? Tell us what to create.