Dev Design Library

Magnetic Cards

A fanned stack of cards that fling away from the cursor on release, with GSAP InertiaPlugin easing each one back to rest.

Magnetic Cards preview
Library
Sora UI
Framework
React
Type
ui
License
MIT + Commons Clause (partes)
Dependencies
@gsap/react, gsap
Files
  • apps/www/registry/primitives/effects/magnetic-cards/index.tsx
  • apps/www/registry/hooks/use-prefers-reduced-motion/index.tsx
  • packages/ui/src/lib/utils.ts
Source
https://github.com/SoraLabsOSS/ui

Categories

More from Sora UI