Report a problem or share feedback← Catalog
Scroll-linked animations
curatedfreemotion/scroll-linked
An example of linking an animation to scroll using Motion for React's useScroll hook.
$
pnpm add motion # then adapt the free source from https://motion.dev/examples/react-scroll-linkednpm deps: motion
Our notes
useScroll + useTransform: progress bars and parallax tied to scroll position. Medium-intensity; keep it to one element per viewport. Free example (motion is MIT); copy and adapt the source from the example page.
- Source
- Motion (motion.dev)
- Kind
- transition
- Categories
- transition, scroll-effect
- Use as
- recipe — technique you apply to your own markup
- Applies to
- scroll-effecthero
- Motion
- on scroll · medium · motion · low cost
- Tags
- motion, useScroll
- Licence
- motion / motion/react / motion-v are MIT. Motion+ (premium components, example source, AI Kit pro tools) is paid — one-time Personal licence or per-seat Business.
- Live demo
- motion.dev
- Docs
- motion.dev
Similar
Compare all 4 →- Scroll-linked spring animationmotion/scroll-linked-with-springAn example of linking an animation to scroll using Motion for React's useScroll hook and smoothing it with useSpring.
- Scroll word revealmotion/text-scroll-word-revealWords light up as you scroll through a paragraph — the classic manifesto/hero statement reveal. Free example (motion is MIT); copy and adapt the source from the example page.
- Element scroll-linked animationmotion/scroll-containerAn example of a scroll-linked animation using a specific element's scroll position using Motion for React's useScroll hook.