Smooth animation: 7 performance rules for websites
Why website animations lag and how to fix it: which properties to animate, how to handle scroll, video and phones. Rules any AI understands.

A beautiful animation that stutters is worse than none. Good news: almost every issue is solved by a few rules.
1. Animate only transform and opacity
The browser handles these separately from the rest of the page, so motion stays smooth. Changing width, height, top or margin forces layout every frame.
2. Do not read sizes inside the animation loop
Asking for element sizes and changing them every frame makes the page stutter. Read everything first, then write styles.
3. Pause what is not visible
Backgrounds, video and heavy effects should pause off screen. IntersectionObserver does that.

4. Careful with blur
filter: blur and backdrop-filter are heavy. Use them sparingly and never animate the blur amount.
5. Video with care
- Load video only when the user scrolls near it.
- Use short loops and show a poster before loading.
- Small previews get a light version, big ones a sharp one.
6. Test on a weak phone
Chrome DevTools can slow the CPU 4–6×. If the animation is smooth there, real devices will be fine.
7. Respect user settings
Some people enable reduced motion. Keep soft fades for them but drop big movements and parallax.
@media (prefers-reduced-motion: reduce) {
* { animation-duration: .01ms !important; }
}Components in our catalog follow these rules, so they are safe for production sites.




