
Helix Slider
Scroll
A draggable testimonial-card component that scatters cards across a full-screen stage so visitors can pick them up, throw them, and restack them.
Card Drift scatters a set of testimonial cards across a full-screen stage, over a large background headline, and lets visitors grab any card, drag it, and throw it. Nothing moves on its own: each card stays where it lands until someone picks it up again, and the card being pressed comes to the top of the pile.
Use Card Drift on testimonial walls, quote collections, and playful proof sections where handling the cards is part of the experience. Drift amount sets how far each card is randomly offset from its grid slot and how far a throw carries; Smoothness sets how long the throw takes. The default export renders five built-in testimonials, which are set in the component source.
In production, the risk is that the interaction is pointer-only. Cards are plain divs with no keyboard or focus handling, so keep every testimonial readable where it lands and do not rely on dragging to reveal anything people need.
import CardDrift from '@/components/effects/card-drift' const page = () => { return ( <> <CardDrift/> <div className='absolute bottom-2 translate-x-[-50%] left-1/2 rounded-xl text-white bg-white/10 px-4 py-2 max-md:bottom-5 text-center backdrop-blur-md'> Grab any card and move it around </div> </> )} export default page A SaaS landing page can use Card Drift for a customer-quote section: the quotes land scattered over a large headline, and visitors can drag a card to the top of the pile to read it or throw it aside to uncover the one beneath.
Not for pricing, comparison, or dense reading sections where cards need to stay perfectly still for scanning.
Cards only animate while being dragged and during the short throw that follows, using GSAP transforms (x, y, scale), so there is no idle animation cost. Keep the card count modest, since each card gets its own Draggable instance, and avoid heavy shadows or filters on cards that move often.
Cards are plain divs moved by pointer drag, with no keyboard or screen-reader handling, so treat the arrangement as decoration and keep each quote readable as text where it lands. Cards only move when dragged, so there is no separate reduced-motion mode; on touch screens dragging works the same way, and below 1025px wide the cards are laid out two to a row.
| Prop | Type | Default | Description |
|---|---|---|---|
backgroundColor | color | #000000 | Background color for the draggable card field. |
backgroundTextColor | color | #ffffff | Color of the large background label. |
cardColor | color | #4f46e5 | Background color for each draggable card. |
cardTextColor | color | #ffffff | Text color for each draggable card. |
barColor | color | #262626 | Background color for each card's tag bar. |
driftAmount | number | 30 | Initial scatter and drag throw distance for cards. |
smoothness | number | 0.7 | Release and scale smoothing duration for each dragged card. |
Use it when a testimonial or quote section benefits from a tactile, hands-on moment: the cards land scattered and visitors can drag and throw them.
The cards never move unless someone drags them, so they do not shift under a reader. Each card is plain HTML with its year, tag, and quote as text, but there is no keyboard dragging or focus handling, so keep the copy readable in the scattered layout rather than relying on people rearranging it.
Card Drift doesn't switch to a static grid: below 1025px wide the cards are scattered two to a row, set slightly lower in the frame, and dragging works with touch the same way as with a mouse.
Yes, when letting visitors handle the cards suits the brand: the quotes stay still and readable until someone picks one up. It hurts when the scatter hides copy or the interaction stands in for weak content.
Card Drift has no reduced-motion mode. Cards sit still in their scattered layout until dragged, and dragging stays fully interactive because it is user-initiated.
Need a custom effect? Tell us what to create.