How to Create Colorful Text Background Scroll Animation with Divi

Last Updated on September 17, 2022 by 6 Comments

How to Create Colorful Text Background Scroll Animation with Divi
Blog / Divi Resources / How to Create Colorful Text Background Scroll Animation with Divi

Creating text background scroll animation is a unique way to add colorful moving textures to the text on your website as a user scrolls down the page.  With Divi, the process is surprisingly easy once you learn a few key techniques.

In this tutorial, we are going to use nothing but the power of Divi’s built-in settings to create 3 unique designs that feature colorful text background scroll animation. We’ll even show you how to create a dark version of each design for a whole new look and feel.

Let’s get started!

Sneak Peek

Here is a quick look at the designs we will build today.

Download the Text Background Scroll Animation Layouts for FREE

To lay your hands on the designs from this tutorial, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our newsletter by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be “resubscribed” or receive extra emails.

To import the layout to your page, simply extract the zip file and drag the JSON file into the Divi Builder.

Let’s get to the tutorial, shall we?

What You Need to Get Started

expanding corner tabs

To get started, you will need to do the following:

  1. If you haven’t yet, install and activate the Divi Theme.
  2. Create a new page in WordPress and use the Divi Builder to edit the page on the front end (visual builder).
  3. Choose the option “Build From Scratch”.

After that, you will have a blank canvas to start designing in Divi.

Design 1: Text Background Gradient with Horizontal Scroll Effect

This first design will feature a horizontal scroll effect that animates a colorful divider module behind a text module with the screen filter.

Add Column

To start, add a one-column row to the default section.

divi text background scroll effects

Add Text Module

Then add a new text module to the column.

divi text background scroll effects

Content

For the column content, paste the following HTML into the content box:

divi text background scroll effects

Text Design

Then update the text design as follows:

  • Background Color: #ffffff
  • Text Font Style: TT
  • Text Text Color: #000000
  • Text Text Size: 100px (desktop), 40px (phone)
  • Text Letter Spacing: 0.15em
  • Text Line Height: 1em
  • Text Alignment: Center

divi text background scroll effects

  • Heading Font: Merriweather
  • Heading Font Weight: Bold
  • Heading Font Style: TT
  • Heading Text Alignment: Center
  • Heading Text Color: #000000
  • Heading Text Size: 200px (desktop), 80px (phone)
  • Heading Letter Spacing: 0.15em
  • Heading Line Height: 1em

divi text background scroll effects

Padding and Filter

Now we need to add a little padding and a screen filter to the text module. The filter is necessary for this design to work because it is what allows the background colors/modules to show behind the text.

To add the padding and the filter, update the following:

  • padding: 15px top, 20px bottom
  • Blend Mode: Screen

Note: The screen blend mode works best with black text on a white background. If we wanted to use white text on a black background we would use the Multiply blend mode.

divi text background scroll effects

Top and Bottom Divider

Once our text module is finished, let’s add couple of dividers (above and one below the text module) for an additional design element.

Add Bottom Divider

Add a new divider module below the text module.

divi text background scroll effects

Top Divider Settings

Open the divider settings and select NOT to show the divider.

divi text background scroll effects

Then update the background and give the divider the same blend mode as the text module as follows:

  • Gradient Background Left Color: #000000
  • Gradient Background Right Color: #ffffff
  • Gradient Direction: 90deg
  • Start Position: 48%
  • End Position: 0%
  • Blend Mode: Screen

divi text background scroll effects

Then update the height of the divider on phone display as follows:

  • Height: 15px (phone)

divi text background scroll effects

Add Top Divider

To create the top divider, duplicate the previous bottom divider and drag it above the text module using the layers view box.

divi text background scroll effects

Then reverse the colors on the gradient background.

divi text background scroll effects

Update Row Settings

Once our top and bottom dividers are in place, update the row settings as follows:

  • Gutter Width: 1 (to take out bottom margins between modules)
  • Max Width: 600px (to keep a consistent design on desktop and tablet)
  • Row Alignment: Center
  • Padding: 0px top, 0px bottom
  • Horizontal Overflow: hidden
  • Vertical Overflow: hidden

divi text background scroll effects

Create Divider for Animated Text Background Color

The final element for this first design is the divider that we will use to animate the text background color on scroll. To do this, add a new divider module under the bottom divider.

divi text background scroll effects

Then select NOT to show the divider.

divi text background scroll effects

Background Divider Settings

Update the divider with a gradient background as follows:

  • Gradient Background Left Color: #e02b20
  • Gradient Background Right Color: #8300e9
  • Gradient Direction: 90deg
  • Start Position: 30%
  • End Position: 70%

divi text background scroll effects

We want to set the height of the divider to be hight enough to color all of our text in the text module and the top and bottom dividers. For this design, set the height to 400px.

  • Height: 400px

divi text background scroll effects

Then give the divider an absolute position to position it directly on top of the other modules. Use the Z Index to make the divider sit behind the other modules.

  • Position: Absolute
  • Z Index: -1

divi text background scroll effects

Background Divider Scroll Effects

With the divider in position, all we have to do is move the divider behind the text using Divi’s scroll effects. For this design, we are simply going to add a horizontal motion on scroll.

Update the following:

Under the Horizontal Motion tab…

Desktop

  • Enable Horizontal Motion: YES
  • Starting Offset: 6 (at 20%)
  • Mid Offset: 0 (at 40%-60%)
  • Ending Offset: -6 (at 80%)

Phone

  • Starting Offset: 3
  • Ending Offset: -3

Make sure to set the motion effect trigger to the middle of the element as well:

  • Motion Effect Trigger: Middle of Element

divi text background scroll effects

Add Section Spacing

To create temporary scrolling space to test out the design, add the following to the section:

  • Margin: 80vh top, 80vh bottom

divi text background scroll effects

Result

Here is the final result of the first design.

Design 2: Text Background Gradient with Rotating Scroll Effect

For this second design, we are going to create a rotating gradient background for the text. We are also going to add a fading in and out element as well.

Duplcate Section

To create the next design, duplicate the entire section featuring the first design we created.

divi text background scroll effects

Background Divider Settings

Then update the settings for the Divider being used for the text background as follows:

  • Width: 600px (desktop), 300px (phone)
  • Height: 600px (desktop), 300px (phone)

divi text background scroll effects

Then update the rounded corners as follows:

  • Rounded Corners: 50%

divi text background scroll effects

This will give the divider a circular shape which is what we want for the rotation scroll effect we will add to the divider.

Next adjust the vertical offset to position the circle behind the text content as follows:

  • Vertical Offset: -100px (desktop), -50px (phone)

divi text background scroll effects

Top and Bottom Divider Updates

Once the divider is in place, update the top divider background as follows:

  • Gradient Background Right Color: transparent

divi text background scroll effects

Then update the bottom divider background as follows:

  • Gradient Background Left Color: transparent

divi text background scroll effects

Update Background Divider Scroll Effects

Once the top and bottom dividers are updated, we need to add new scroll effects to the background divider. Open the settings for the background divider and update the following:

Under the Fading In and Out tab…

  • Enable Fading In and Out: YES
  • Mid Opacity: 100% (at 40%-60%)
  • Ending Opacity: 0%

Under the Scaling Up and Down tab…

  • Enable Scaling Up and Down: YES
  • Starting Scale: 105%
  • Mid Scale: 115%
  • Ending Scale: 105%

Under the Rotating tab…

  • Enable Rotating: YES
  • Starting Rotation: 360deg
  • Ending Rotation: -360deg

divi text background scroll effects

Make sure to disable the Horizontal Motion effect as well.

divi text background scroll effects

Result

Here is the result of design 2.

Design 3: Text Background with Multiple Moving Circles

For this third and final design, we are going to add multiple circular dividers that move behind the text for a beautiful animation on scroll.

Duplicate Section 2

To do it, first duplicate the section.

divi text background scroll effects

Top and Bottom Divider Updates

Then open the settings for the top divider in the new/third section and add the black color back to the gradient background as follows:

  • Gradient Background Right Color: #000000

divi text background scroll effects

Open the settings for the bottom divider and update the background as well.

  • Gradient Background Left Color: #000000

divi text background scroll effects

Creating Background Divider 1

The first background divider already exists from the previous design, we are going to make it smaller and animated it differently.

Background Divider 1 Settings

Open the settings for the background divider and update the following:

  • Width: 250px (desktop and tablet), 125px (phone)
  • Height: 250px (desktop and tablet), 125px (phone)
  • Vertical Offset: 0px (desktop, tablet, and phone)

divi text background scroll effects

Background Divider 1 Scroll Effects

Then reset the transform effects that were transferred from the previous design by right clicking on the scroll effects option group and selecting “Reset Scroll Transform Effects”.

divi text background scroll effects

Now we can add new scroll effects as follows:

Under the Vertical Motion tab…

Desktop

  • Enable Vertical Motion: YES
  • Starting Offset: -2
  • Mid Offset: 2 (at 60%)
  • Ending Offset: 4

Phone

  • Starting Offset: -1
  • Mid Offset: 1 (at 60%)
  • Ending Offset: 2

divi text background scroll effects

Under the Horizontal Motion tab…

  • Enable Horizontal Motion: YES
  • Starting Offset: 0
  • Mid Offset: 2 (at 45%-65%)
  • Ending Offset: 0 (at 80%)

divi text background scroll effects

Creating Background Divider 2

To create the second background divider, duplicate the first background divider.

divi text background scroll effects

Background Divider 2 Updates

Background

Then open the settings for the second/duplicate background divider and update the following background color:

  • Background Gradient Left Color: rgba(224,153,0,0.9)
  • Background Gradient Right Color: rgba(255,243,71,0.9)

divi text background scroll effects

Size

Then update the size as follows:

  • Width: 300px (desktop and tablet), 150px (phone)
  • Height: 300px (desktop and tablet), 150px (phone)

divi text background scroll effects

Scroll Effects

Then update the scroll effects as follows:

Under the Vertical Motion tab…

Desktop

  • Starting Offset: 5
  • Mid Offset: 0
  • Ending Offset: -5

Phone

  • Starting Offset: 2
  • Mid Offset: 0
  • Ending Offset: -2

divi text background scroll effects

Under the Horizontal Motion tab…

Desktop

  • Starting Offset: 0
  • Mid Offset: 3
  • Ending Offset: 2

Phone

  • Mid Offset: 1.5
  • Ending Offset: -1

divi text background scroll effects

Creating Background Divider 3

To create the third and final background divider, duplicate background divider 2.

divi text background scroll effects

Background Divider 3 Updates

Background

Then update the background gradient colors as follows:

  • Background Gradient Left Color: rgba(124,218,36,0.9)
  • Background Gradient Right Color: rgba(12,113,195,0.9)

divi text background scroll effects

Size

Then update the sizing as follows:

  • Width: 200px (desktop and tablet), 100px (phone)
  • Height: 200px (desktop and tablet), 100px (phone)

divi text background scroll effects

Scroll Effects

Then update the scroll effects as follows:

Under the Vertical Motion tab…

  • Starting Offset: 0
  • Mid Offset: 0
  • Ending Offset: 4

divi text background scroll effects

Under the Horizontal Motion tab…

Desktop

  • Starting Offset: 6 (at 20%)
  • Mid Offset: 0 (at 40%-60%)
  • Ending Offset: 6 (at 80%)

Phone

  • Starting Offset: 3
  • Ending Offset: 3

divi text background scroll effects

Here is the final result of design 3.

Final Results

Now let’s check out the final results for all three designs.

And here is the design on mobile.

Dark Versions

To create a dark version of these designs, you will need to switch the white color used for black and also switch the black colors used for white. Then use the Multiply blend mode for the text module and top and bottom dividers.

Here’s how to do it for design 3.

First, change the background of the section to black.

Then update the text module settings as follows:

  • Background Color: #000000
  • Text Text Color: #fffffff
  • Heading Text Color: #ffffff
  • Blend Mode: Multiply

Here is the result.

And here is what the rest of the designs will look like with the dark version applied.

Final Thoughts

The text background animation designs featured in this article would actually work great as a static design without the addition motion on scroll. However, the additional scroll effects really do take the design to a whole new level. Feel free to experiment with more colors and effects!

I look forward to hearing from you in the comments.

Cheers!

Divi Marketplace

Are You A Divi User? Find Out How To Get More From Divi! 👇

Browse hundreds of modules and thousands of layouts.

Visit Marketplace
Divi Marketplace
Divi Cloud

Find Out How To Improve Your Divi Workflow 👇

Learn about the new way to manage your Divi assets.

Get Divi Cloud
Divi Cloud
Divi Hosting

Want To Speed Up Your Divi Website? Find Out How 👇

Get fast WordPress hosting optimized for Divi.

Speed Up Divi
Divi Hosting
Premade Layouts

Check Out These Related Posts

New Starter Site for Estheticians (Quick Install)

New Starter Site for Estheticians (Quick Install)

Posted on November 12, 2024 in Divi Resources

Divi empowers you to build the best websites possible, and now, Divi Quick Sites takes website creation to a whole new level. This revolutionary tool lets anyone, regardless of skill level, generate a complete website in under two minutes! Divi Quick Sites provides everything you need to launch...

View Full Post
Divi 5 Update: Public Alpha Version 3

Divi 5 Update: Public Alpha Version 3

Posted on November 11, 2024 in Divi Resources

The Divi 5 Public Alpha is available for testing. As we progress towards the final release, we’ll update Divi 5 every two weeks, appearing as a standard update in your WordPress dashboard. If you use Divi 5, you’ll notice an update notification for Public Alpha Version 3 today. Thanks...

View Full Post

6 Comments

  1. Great tutorial, thanks Jason.
    Has anyone noticed that this technique does not work on smaller screens?

  2. Hello, I downloaded the json file and when I try to import it is says “This file should not be imported in this context.”

  3. Super!!!

  4. wow these tutorials are so creative and it seems the possibilities are unlimited

    thanks!

    • Thanks, Alex. I agree, so many possibilities!

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today