Ajouter

Lorem ipsum

Lorem ipsum

Design

5 min

How to Add a Parallax Effect in Webflow

Learn how to add a parallax effect in Webflow using native interactions or a mobile-friendly JavaScript script.

In this tutorial, Sandro, cofounder of Gemeos Webflow agency, shows you how to add a parallax effect in Webflow using native interactions or CSS.

Example

Scroll the page to see the parallax effect

Parallax effect
MethodComplexityMobile compatibility
CSS background-attachment: fixedVery simpleLow (not supported on iOS Safari)
Webflow Interactions ScrollModerateGood
JavaScript script (this tutorial)ModerateExcellent

1. Create your section with the background image

Create a section in Webflow. Add a background image and set it to Cover. Give this section the parallax-section class. Make sure the section has enough height (min-height: 500px).

2. Add the parallax effect with Webflow Interactions

Select the background image or a child element. In Interactions, create a Scroll into view trigger with the While scrolling in view option. Add a Move action on the Y axis, from +50px to -50px depending on scroll progress. Check Easing: Linear.

3. Alternative: JavaScript script for the background image

window.addEventListener('scroll', function() {
document.querySelectorAll('.parallax-section').forEach(function(el) {
const offset = el.getBoundingClientRect().top;
el.style.backgroundPositionY = (offset * 0.3) + 'px';
});
});

good to know

The CSS parallax effect (background-attachment: fixed) doesn't work on iOS Safari, which accounts for a big chunk of mobile traffic. Stick with Webflow Interactions or JavaScript for universal compatibility. Reduce the parallax intensity on mobile (0.1 instead of 0.3) to avoid that nauseating effect.

Conclusion

Parallax adds depth and motion. Use cases:

  • Hero section with a background image
  • Divider sections between content blocks
  • Portfolio pages with eye-catching visuals

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...