On this page
What this issue is
Browsers draw a page in stages: style, layout, paint, then compositing, where layers are combined on screen. Compositing is done by the GPU (the graphics chip). Changing transform or opacity can skip layout and paint and run only at the compositing stage.
Properties like width, height, top, left, margin, padding or box-shadow do not get that shortcut. Animating them makes the main thread redo work 60 times a second. Chrome DevTools and Lighthouse call these non-composited animations.
Why it costs you leads or sales
Main-thread animation work delays everything else the page must do, including responding to a tap on your call-to-action. Stuttering motion also makes a page feel cheap or broken, which lowers trust at the moment someone decides whether to fill in a form.
Layout-based animations can also move other elements each frame, which may shift content under a user's finger and cause mis-taps.
Not composited
- Animates `left` or `margin-left`
- Layout and paint rerun every frame
- Drops frames on mid-range phones
- Competes with taps and scripts
GPU-composited
- Animates `transform: translateX()`
- Only compositing runs per frame
- Stays smooth under load
- Main thread stays free for input
How to check if your site has it
Run Lighthouse
In Chrome DevTools open the Lighthouse tab, run a Performance audit and look for the diagnostic 'Avoid non-composited animations'. It lists the elements and the properties animated.
Record a trace
Open the Performance tab, press record, trigger the animation, then stop. Look for red frame markers and long 'Recalculate Style', 'Layout' or 'Paint' blocks during the motion.
Turn on paint flashing
Open the Rendering panel (Command menu, type 'Rendering') and tick 'Paint flashing'. Green flashes across the animated area on every frame mean it is repainting.
Test with CPU throttling
In the Performance tab set CPU to 4x or 6x slowdown and replay the animation. Problems that hide on a fast laptop show up here.
Check the Animations panel
Open the Animations panel to see which CSS properties each animation changes. Anything other than transform or opacity is a candidate.
How to fix it
The rule is simple: move things with transform: translate(), resize with transform: scale(), and fade with opacity. Here is a typical before and after.
.banner {
position: fixed;
left: -300px;
transition: left 0.3s ease;
}
.banner.open {
left: 0;
}.banner {
position: fixed;
left: 0;
transform: translateX(-300px);
transition: transform 0.3s ease;
}
.banner.open {
transform: translateX(0);
}Find the offending rule
Search your CSS for
transitionand@keyframesrules that list width, height, top, left, right, bottom or margin.Rewrite with transform and opacity
Use translate for movement and scale for size changes. Keep the element's layout position fixed.
Add will-change sparingly
For a heavy animation, add
will-change: transformjust before it starts and remove it after. Do not put it on many elements, as each one uses memory.
Identify the source
Use DevTools to see whether the animation comes from your theme, a page builder or a slider plugin.
Change the animation setting
Many builders and sliders offer a 'slide' or 'fade' effect. Choose fade or a transform-based slide if the options differ.
Override in custom CSS
If there is no option, add a rule under Appearance > Customize > Additional CSS that overrides the animated property with a transform version.
Open Interactions
In the Interactions panel check which style properties each animation changes.
Swap to Move, Scale and Opacity
Use the Move (transform), Scale and Opacity actions instead of animating size, position or margin properties.
Check theme animations
Look in your theme's CSS files in the code editor for transitions on layout properties. Some themes expose animation toggles in theme settings.
Edit or turn off
Rewrite the rule to use transform, or switch off the effect in theme settings if it is only decorative. Duplicate the theme before editing.
How to confirm it's fixed
- Lighthouse no longer lists 'Avoid non-composited animations' for the page
- Performance trace shows no long Layout or Paint blocks during the animation
- Paint flashing no longer lights up the animated area every frame
- Animation looks smooth with 4x CPU throttling
- Tested on a real mid-range phone, not only a desktop
- Nearby content does not shift while the animation runs
How to prevent it happening again
- Agree a team rule: animate only transform and opacity
- Review new sliders, popups, sticky bars and page-builder effects in DevTools before launch
- Run Lighthouse after theme, plugin or builder updates
- Limit
will-changeto elements that truly need it - Keep decorative motion minimal on pages with forms and checkouts
| Property | Cost per frame | Use for animation? |
|---|---|---|
| transform (translate, scale, rotate) | Compositing only | Yes |
| opacity | Compositing only | Yes |
| color, background-color | Paint | Sparingly |
| box-shadow | Paint | Avoid on large areas |
| width, height, margin, padding | Layout and paint | Avoid |
| top, left, right, bottom | Layout and paint | Avoid |
How FunnelGuard handles this
This is outside what FunnelGuard checks. FunnelGuard runs your real customer journeys on a schedule and checks steps, tracking hits and lead delivery, but it does not measure frame rate or analyse how animations are rendered.
The kind of tool that fits is a browser performance profiler or a lab performance audit: Chrome DevTools (Performance and Rendering panels) and Lighthouse for diagnosis, plus real-user monitoring if you want to see how animations and interaction delay behave on your visitors' devices.
Questions people ask
What does 'non-composited animation' mean?
It means an animation changes a property, such as width, top or margin, that forces the browser to recalculate layout or repaint on the main thread. Composited animations only change transform or opacity, which the GPU can handle separately and smoothly.
Why is my CSS animation laggy on mobile?
Most likely it animates layout properties like left, height or margin, which need main-thread work every frame. Phones have slower processors than laptops, so frames drop. Switch to transform and opacity and test with CPU throttling.
How do I find which animations are not GPU-accelerated?
Run a Lighthouse performance audit in Chrome DevTools and open 'Avoid non-composited animations'. You can also record a Performance trace or enable Paint flashing in the Rendering panel to see repainting during motion.
Is will-change: transform a good fix?
It can help by promoting an element to its own layer, but it is not a cure for animating layout properties. Use it sparingly on the few elements that animate, because every extra layer uses memory.
Which CSS properties can the GPU animate?
In practice, transform and opacity are the safe ones in all major browsers. Some others, like filter, can be composited in certain cases, but rely on transform and opacity for predictable results.
Do non-composited animations hurt SEO or conversions?
The direct impact is usually small. Indirectly they can make a page feel slow and compete with taps for main-thread time, which can hurt interaction responsiveness on weaker phones.
Can FunnelGuard detect janky animations?
No. FunnelGuard checks funnel steps, tracking hits and lead delivery, not frame rate. Use Chrome DevTools, Lighthouse or real-user monitoring for animation performance.
Related issues
- PRF-048Scroll jank from scroll listeners / parallaxFix guide
- PRF-040Long tasks over 50 ms block input during loadFix guide
- PRF-039INP over 200 ms on a CTA or form interactionFix guide
- PRF-041Total Blocking Time high from heavy third-party tagsFix guide
- PRF-042Submit button unresponsive for seconds while JS loads (dead first click)Fix guide
- PRF-043Form validation runs heavy JS on every keystrokeFix guide