Smooth motion is mostly a performance problem. Here's how to animate the right properties, skip the layout work and keep every frame fast.
Motion is a performance problem first
Most janky animations are not caused by bad easing curves. They happen because the browser cannot finish each frame in time. At 60fps you have roughly 16 milliseconds per frame, and if your animation triggers expensive work on every one of them, frames get dropped and the motion stutters, no matter how beautiful the design is.
Animate transform and opacity
Transform and opacity are the two properties browsers can usually animate on the compositor, without redoing layout or paint. Animating width, height, top or left forces the browser to recalculate layout on every frame. As a rule, replace a moving left value with translateX, a growing width with scale, and reach for opacity for fades. The result looks the same and costs far less.
Reach for CSS before JavaScript
Simple transitions, hover states and keyframe loops are best handled in CSS, where the browser can optimise them heavily. Save JavaScript libraries like GSAP for sequencing, scroll control and complex timelines. Using a heavy library for a button hover adds weight to your bundle without adding any value for the visitor.
Use will-change sparingly
The will-change property tells the browser an element is about to animate so it can prepare a separate layer. That helps, but every layer uses memory. Add it just before an animation starts and remove it when it ends. Putting it on dozens of elements permanently can make performance worse instead of better.
Scroll-driven motion without the lag
Listening to the scroll event and updating styles by hand is a common cause of stutter, because the handler runs far more often than the screen refreshes. Modern CSS scroll-driven animations and the IntersectionObserver API move that work off the main thread. If you need precise control, batch your reads and writes and update inside requestAnimationFrame so everything happens once per frame.
Keep 3D and WebGL light
Immersive scenes are exciting, but they are also the easiest way to drain a phone battery. Limit the device pixel ratio to 2, compress textures, reuse geometries and materials, and pause rendering when the canvas is off screen. A scene that holds a steady 60fps on a mid-range phone is worth more than a richer one that stutters.
Respect reduced motion
Some people get dizzy or distracted by large movement on screen. The prefers-reduced-motion media query lets you detect that setting. Instead of removing feedback completely, swap big parallax and sliding effects for gentle fades. Good motion design works for everyone, and this takes only a few lines of CSS.
Measure, do not guess
Open the Performance panel in your browser DevTools, record an interaction and look for long frames, repeated layout work and heavy paint. Then test on a mid-range phone, not just your fast laptop. An animation that feels perfect on a high-end machine can fall apart on the devices most of your visitors actually use.
A quick checklist before you ship
Animate only transform and opacity where possible. Remove will-change when the animation ends. Cap the pixel ratio on canvas elements. Honour reduced motion settings. Test on a real mid-range phone. Check that nothing shifts the layout while it loads. If you can tick all six, your motion is in good shape.
Restraint is part of the craft
The best motion is purposeful. Every animation should guide attention, confirm an action or explain a change. When it does, and it runs smoothly on every device, people rarely notice the animation itself. They just feel that the site is polished and easy to use.

Written by
Sabur Ahemad Khan
Creative Frontend & 3D Developer
I write about shaders, motion, and shipping immersive sites that stay fast.
