React scroll animations

20 examples. Scroll animations built with React and Framer Motion. Scroll-driven reveals, parallax, sticky stories and transitions tied to scroll position.

React scroll animations: common questions

How do I build scroll 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 make scroll-driven animations?
Use CSS scroll-driven animations (animation-timeline: scroll() or view()), GSAP ScrollTrigger, or scrollTransition in SwiftUI.
How do I keep scroll animations smooth?
Animate only transform and opacity, avoid layout changes while scrolling, and turn effects off under prefers-reduced-motion.

More React animations