Add

Lorem ipsum

Lorem ipsum

A
A
A
SEO / GEO

0 views

5 min

How to Improve CLS (Cumulative Layout Shift) in Webflow

Learn how to fix CLS in Webflow and keep it under 0.1: image dimensions, CSS transforms, banners, and fonts.

In this tutorial, Sandro, cofounder of the Gemeos Webflow agency, shows you how to fix CLS (Cumulative Layout Shift) in Webflow. CLS measures unexpected visual shifts: Google considers anything under 0.1 acceptable.

Common cause of CLSWebflow solution
Images without defined dimensionsSet width + height or aspect-ratio
Fonts that replace the system fontfont-display: swap + preload
Cookie banners/banners that appearReserve space with min-height or position fixed
Third-party embeds without dimensionsContainer with a fixed aspect-ratio
Animations that move elementsUse transform instead of top/left/margin

1. Identify the elements responsible for CLS

In Chrome DevTools > Performance, record the page load. Elements with high CLS appear in red in the Layout Shift report. PageSpeed Insights also shows the elements responsible in the "Avoid large layout shifts" section.

2. Set dimensions on all your images

In Webflow, use the Aspect Ratio option on the image container instead of letting the image define its own height. Example: a container with width 100% + aspect-ratio 16/9 reserves the space before the image loads.

3. Use transform for your animations

Animations that change top, left, margin, or padding trigger a layout recalculation and contribute to CLS. Replace them with transform: translateY() or transform: translateX(), which don't affect the document flow.

4. Handle the appearance of banners and pop-ups

Cookie banners and pop-ups that push content downward are a major source of CLS. Use position: fixed so they float above the content without moving it.

good to know

Web fonts cause a specific type of CLS called FOUT (Flash of Unstyled Text): the system font temporarily replaces your custom font, then the reverse happens. The difference in metrics between the two fonts — letter height, spacing — creates a shift. Preloading your font reduces that window to a few milliseconds.

Conclusion

A CLS below 0.1 is essential for a good user experience. Use cases:

  • Pages with dynamically loaded images
  • Sites with cookie banners or pop-ups
  • Pages with entrance animations on elements

Good to know

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet consectetur.

Lorem ipsum dolor sit amet consectetur. Aliquam orci sagittis dignissim sapien praesent donec.

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Published on

You might be interested in these tutorials

Similar tutorials

SEO / GEO

5 min read

5 views

How to Set Up a Redirect in Webflow? (2026)

Updated on 19.12.2025 by Sandro DA SILVA

SEO / GEO

5 min read

5 views

Add structured data to your Webflow site?

Updated on 21.08.2025 by Sandro DA SILVA

No-code

5 min read

5 views

How to Obfuscate a Link in Webflow

Updated on 23.04.2025 by Sandro DA SILVA

Let’s f*****G GO !!

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...