React card animations
50 examples. Card animations built with React and Framer Motion. Cards that stack, flip, expand into detail pages, swipe away and rearrange — the backbone of modern app UI.
React card animations: common questions
- How do I build card animations in React?
- Pick an example below, copy its prompt (or send it to Claude Code, Cursor or Codex) and your agent builds it in React. Each prompt lists the layout, timing and easing, and links a keyframe sheet of the motion. Framer Motion (now motion/react) covers most UI work: layout animations, AnimatePresence for enter and exit, gestures and springs. Use GSAP for long timelines and scroll choreography, and three.js or react-three-fiber for 3D.
- How do I expand a card into a detail page?
- Use a shared-element transition: matchedGeometryEffect in SwiftUI, layoutId in Framer Motion or the View Transitions API on the web, so the card grows into the page.
- How do swipeable card stacks work?
- The top card follows the drag with rotation based on horizontal offset; past a threshold it flies off with velocity and the next card springs forward.
Card animations in other frameworks
More React animations
- All React
- Micro-interactions89
- Screen & page transitions57
- Landing page animations40
- Hover effects39
- 3D UI animations32
- Text animations30
- Spring animations27
- Input & form animations25
- Menu & navigation animations21
- Scroll animations20
- Morph animations19
- Gradient & glow animations18
- Button animations17
- Particle effects16
- Loading animations13
- Toggle & switch animations13
- Chart & data animations13
- Carousel animations11
- Slider animations9
- Onboarding animations7
- Checkbox animations4