React spring animations

27 examples. Spring animations built with React and Framer Motion. Physics-based motion with bounce and follow-through: squishy buttons, flung cards and elastic menus.

React spring animations: common questions

How do I build spring 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.
What spring values should I use?
A good default is response 0.35–0.5 s with damping 0.7–0.85. Lower damping adds bounce; use it for playful moments, not everywhere.
Why use springs instead of easing curves?
Springs keep momentum when interrupted, so gestures and repeated taps feel natural.

Spring animations in other frameworks

More React animations