Choreographing crisp, compositor-first motion for modern browsers
Why buttery 120fps scroll parallax, magnetic buttons, and masked typography depend on disciplined GPU pipelines.
Daniel Okafor
Staff Creative Technologist

Key takeaways
- 01Animate transform and opacity exclusively on scroll and hover to avoid layout reflow.
- 02Use spring physics driven by MotionValues so pointer interactions never trigger React re-renders.
- 03Respect prefers-reduced-motion across keyframes, scroll scrubbing, and route transitions.
Staying strictly within the compositor
Sluggish websites rarely suffer from too much animation; they suffer from animating layout geometry like width, top, or margin during scroll events. Even a subtle reveal stutters when the browser recalculates layout on every frame.
By restricting interactive transitions to GPU transforms and opacity, surfaces glide seamlessly even on power-constrained laptops and mobile viewports.
Zero-rerender pointer tracking
When building magnetic buttons or cursor-following spotlight shades, writing coordinates into React state forces continuous component reconciliation. Binding MotionValues directly to hardware-accelerated transforms keeps frame pacing locked and tactile.
“Great motion feels inevitable: fast enough never to delay a click, gentle enough to register craft.”

