Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Card Drift

Card Drift

A draggable testimonial-card component that scatters cards across a full-screen stage so visitors can pick them up, throw them, and restack them.

GSAP
DemoDemoDemo

Tune the Real Props

Background Color

Background color for the draggable card field.

Background Text Color

Color of the large background label.

Card Color

Background color for each draggable card.

Card Text Color

Text color for each draggable card.

Bar Color

Background color for each card's tag bar.

Overview

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.


Usage Code

page
1import CardDrift from '@/components/effects/card-drift'2 3const page = () => {4 return (5 <>6 <CardDrift/>7 <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'>8      Grab any card and move it around9 </div>10 </>11 )12}13 14export default page15 

Example Production Use Case

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.


Best Used For

  • Testimonial and quote walls where picking up a card to read it is part of the fun.
  • Playful proof or culture sections where cards can overlap and visitors restack them by dragging.
  • Portfolio or campaign pages that want a tactile, hands-on moment rather than a static grid.

Not For

Not for pricing, comparison, or dense reading sections where cards need to stay perfectly still for scanning.


Performance Budget

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.


Accessibility and Mobile

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.


Common Mistakes

  • Setting Drift amount so high that cards overlap and quotes cannot be read without dragging.
  • Relying on dragging to show content, since keyboard and screen-reader users cannot move the cards.
  • Using the drag interaction to compensate for weak testimonial copy.

Changelog

Added reduced-motion support and configurable visual and motion controls.
Initial release

API Reference

PropTypeDefaultDescription
backgroundColorcolor#000000Background color for the draggable card field.
backgroundTextColorcolor#ffffffColor of the large background label.
cardColorcolor#4f46e5Background color for each draggable card.
cardTextColorcolor#ffffffText color for each draggable card.
barColorcolor#262626Background color for each card's tag bar.
driftAmountnumber30Initial scatter and drag throw distance for cards.
smoothnessnumber0.7Release and scale smoothing duration for each dragged card.

Questions, Answered.

When should I use Card Drift?

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.

How should Card Drift stay readable and focus-safe?

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.

How should Card Drift simplify on mobile?

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.

Can Card Drift improve proof or feature grids?

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.

What should reduced motion do for Card Drift?

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.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Helix Slider
Pro
Three.js@react-three/fiber

Helix Slider

Scroll

Circular Split Roll
GSAPLenis

Circular Split Roll

Scroll

Text Convergence
GSAP

Text Convergence

Scroll

Scramble Link Button
Lucide-react

Scramble Link Button

Buttons

Spider Particles Background
Three.js

Spider Particles Background

Backgrounds