Change the background color | Webflow animation

Tutorial
3 min
Published on Mar 20, 2023
Updated on
Preview of an animation on the BG color in Webflow with Weflow Tuto logo.
Use AI to summarize this article
Key points

In this easy and quick Webflow tutorial, you will learn how to create an animation: change the color of the background of a section while scrolling. No coding required.

To complete this tutorial, you will need:

  • A Webflow project with access to the designer mode

Step-by-step tutorial

Video tutorial.. 🍿🎬

1 - Create your section

2 - Add your CSS style properties

For this tutorial, we will create a class named section-animation with a background color. This color will change as we scroll into this section.

Section in Webflow
Section-animation

3 - Create the animation

1. Select the section to animate

2. Create a "while scrolling in view" interaction

CSS style animation 'BG color' in Webflow
Selection of "While scrolling in view"

3. Add multiple BG color values to the section element

CSS style animation 'BG color' in Webflow
Selection of a "BG color" animation

4. Modify the BG color value based on the scroll % within the section using %keyframe

Background color change animation in Webflow
Zoom in on the 4 different configurations

4 - Test the animation in the design tool

Test the animation using the "live preview."

🎁 This feature allows you to fine-tune the %keyframe of your animation to ensure it is perfectly synchronized.

Live preview animation in Webflow
Live preview animation in Webflow

And that's it! You now know how to animate the background color of a section on your website in Webflow.

If you want to learn more about Webflow, feel free to subscribe to the Digidop YouTube channel (new video every week) or follow our blog for articles on Webflow and no-code topics!

Bonus: Discover how to apply a glassmorphism effect in Webflow!

Florian Bodelot
Florian Bodelot
Co-founder

Suggested articles

Promotional graphic for Webflow Conf 2026 featuring Lucas Clairet as a finalist for the Developer of the Year award. His black-and-white portrait is set against a vibrant abstract background with blue, orange, green, and pink textures, creating a bold, modern visual identity. The vertical Webflow Conf ’26 branding appears on the left, while his name and the title “Finalist – Developer of the Year” are displayed in a black panel.
News
Webflow

Lucas Clairet named Finalist for Webflow Awards 2026 – Developer of the Year

Lucas Clairet named Finalist for Webflow Awards 2026 – Developer of the Year
Overview of Webflow AEO combining AI recommendations, analytics, prompt tracking, and SEO optimizations within a single interface.
Documentation
Webflow

Webflow AEO: Answer Engine Optimization built directly into Webflow

Webflow AEO: Answer Engine Optimization built directly into Webflow
Website redesign brief document titled "Brief" on a dark blue background
Documentation

Brief, specifications and RFP: scoping your website redesign and choosing the right agency

Brief, specifications and RFP: scoping your website redesign and choosing the right agency
Every great website  
starts with a conversation
Abstract composition of black and gold metallic ribbons with elegant light reflections and smooth gradients. A premium background conveying luxury, modernity, and innovation.