Badge Webflow Award Winner 2023

Change background colour | Webflow animation

Webflow tutorial to create an animation (easy UI design): change the background colour of a section of your Webflow site when scrolling.

Published on 
2/5/2022
-
Amended on 
27/3/2023
-
5 min
Preview of an animation on BG color in Webflow with Weflow logo Tuto

In this Webflow tutorial (quick and easy) you will learn how to create an animation: change thebackground colour of a section when scrolling. Without code.

To complete this tutorial you will need :

  • A webflow project with access to the designer mode

The step-by-step tutorial

Video tutorial.. 🍿🎬

1 - Create your section

2 - Add your CSS style properties

For the tutorial, we will create a class called section-animation with a background colour. This colour will change when we arrive in this section.

Section in Webflow
Section-animation

3 - Creating the animation

1. Select the section to be animated

2. Create a "while scrolling in view" interaction

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

3. Add multiple BG color values to the section element

BG color CSS style animation in Webflow
Selection of an animation from the "BG color".

4. Change the BG color value according to the % scroll in the section with the %keyframe

Background color change animation inside Webflow
Focus on the 4 different configurations

4 - Testing the animation in the authoring tool

Test the animation with the "live preview" feature.

🎁 This feature allows you to properly set the %keyframe of your animation so that it is perfectly synchronised.

Live preview animation in Webflow
Live preview animation in Webflow

And now you know how to animate the background colour of a section of your website in Webflow.

If you want to know more about Webflow, don't hesitate to subscribe to Digidop youtube channel (new video every week) or follow our blog with articles about Webflow and no-code!

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

Ready to take your website to the next level?

Improve your online visibility thanks to Digidop's experience, excellence and reactivity!

Stay in touch with Digidop news!