How to Animate Your Divi Call to Action Module

Posted on January 9, 2024 by Leave a Comment

How to Animate Your Divi Call to Action Module
Blog / Divi Resources / How to Animate Your Divi Call to Action Module

Our signature theme, Divi, comes packed with various styling options for its library of native modules. In addition to having deep control over how elements on your website will look, you also have the option of adding motion to your pages. Divi includes several animation effects you can add to your next web design project. In this post, we’ll look at how to use the following animation settings in Divi within the native Call to Action Module:

  1. Hover
  2. Scroll Effects
  3. Animation and
  4. Sticky

For this tutorial, we’ll recreate a section within the Divi Marketing Agency Layout Pack. We will be working with the Landing Page Layout.

Installing the Landing Page Layout

We first need to create a new page in WordPress to install the page layout. We do this by hovering over the Pages menu item from the left-hand menu. Then, we click Add New.

Add new page for Marketing Agency Landing Page

Once inside the default WordPress editor Gutenberg, set a title for your new page. Next, click on the purple Use Divi Builder button.

Activate the Divi Builder

You will then be presented with three options. We will click on the purple middle button, Browse Layouts.

Browse the free layouts provided with Divi

This will open up Divi’s vast layout library, which comes packed with pre-designed pages for you to choose from. We’ll be selecting the Marketing Agency Layout Pack.

Select the Marketing Agency Layout Pack

From within the layout pack, we’ll be using the Landing Page Layout. Click on the layout, then, click on the blue Use this Layout button to load the layout into your newly created page.

Select the Landing Page Layout from within the Layout Pack

Once the layout has loaded, click the green Save button at the bottom right of the screen.

Save page with new layout installed

Now, the real work begins! Let’s create our first call to action!

Adding Our Call to Action Module

Throughout this tutorial, we will use a Call to Action module to replace the Text and Button Modules used in this section.

Creating our Call to Action Module

To begin, let’s first delete these modules. Hover over each module, and click the trash can icon when the gray pop-out menu appears. We want to leave the Text Module that says Introduction, but we will use one Call to Action to replace the modules that we have deleted.

Delete modules within row

Next, we want to add a Call to Action Module to the row. We do this by hovering over the Text Module and clicking the gray plus icon.

Add new Call to Action module

This will then open the modules pop-up. From there, we click on the Call to Action Module icon.

Add new Call to Action module

With the module added, we can start to style it for use within our layout.

Styling Our Call to Action Module

We will use the same copy from the original modules for our newly added Call to Action Module. We can enter this content into the module’s Title, Button, and Body fields.

Adding copy to Call to Action Module

Styling the Call to Action Text

Now, let’s begin to style our module. We start by clicking on the Design tab of the Call to Action Module. First, we want to set the alignment and color of our text. We want to have our text aligned to the Center and color set to Light.

Setting Call to Action color and alignment

Secondly, we want to start styling our Title Text. Below, find the settings that we’ll be using.

Title Text Settings:

  • Title Font: Poppins
  • Title Font Weight: Bold
  • Title Text Size: 55px
  • Title Line Height: 1.2em

Styling Title Text in the Call to Action Module

Notice how it looks similar to the text that was previously used. We’ll take our style guidance from our Divi Marketing Agency Layout Pack.

Thirdly, we want to style our Body Text. Let’s use the settings below to get the Body Text of our module.

Body Text Settings:

  • Body Font: Raleway
  • Body Font Weight: Regular
  • Body Text Size: 16px
  • Body Line Height: 1.8em

Button Styles within Our Module

Styling Body Text

Finally, we’ll use the following settings to style the button of the Call to Action Module.

Button Settings:

  • Use Custom Styles for Button: Yes
  • Button Text Size: 14px
  • Button Text Color: #000000
  • Button Background: #ffffff
  • Button Border Width: 0px
  • Button Border Radius: 10px
  • Button Font: Poppins
  • Button Font Weight: Bold
  • Button Padding:
    • Top and Bottom Padding: 20px
    • Left and Right Padding: 30px

Button Style Settings

Adding Padding to Our Module

Before we leave the Design tab, let’s add some padding to the contents of our Call to Action Module. To do this, let’s scroll down to the Spacing tab. Then, enter 10% for both the Left and Right Padding.

Add spacing to module

Changing Our Background Color

To finish styling our module, we will exit the Design tab and finally end in the Content tab. We click on the Content tab, then scroll down to the Background tab. Then, we uncheck the Use Background Color toggle to remove the default background color of the module.

Deactivate the background color

Once that is done, we then click on the green check mark to save our work and close our Call to Action Module.

Animating Our Module with Hover Effects

We will begin to animate our first Call to Action Module with a subtle Hover animation. You can see the final product of our work below.

Activating Hover Settings

To begin, we enter into the Module Settings for our newly styled Call to Action Module.

Enter Module Settings

Then, we click on the Design tab. Finally, we scroll down to the Transform tab. This is where we’ll be activating the hover effect for this module. Once we’re in the Transform section, we hover over Transform to reveal a flyout menu. From the menu, we click on the Pointer icon. This icon means we can set alternative settings within the Transform options that will be activated upon hovering.

Activate hover settings with transform settings

One of the great things about Divi is that many items and options in Divi can also have the same hover effect activated. In our case, we want the size of the module to increase by 5% when we hover over it.

Firstly, we will click on the hover tab. This will show us the options that we can use to transform our module. Secondly, we will click on the Scale icon. We want to increase the overall size of our module. Next, we enter the amount that we want our module to increase by. We want it to be bigger than it currently is by five percent, so we enter 105% into the size option. To save our changes, we then click on our green check mark button.

Entering in the transformation hover settings

Using Scroll Effects with the Call to Action Module

Let’s look at how we can use Scroll Effects to add a subtle animation to our Call to Action Module. Here’s what we’ll be achieving through Divi’s native Scroll Effects:

We’ll be starting from our freshly styled Call to Action Module. Unlike our Transform settings, we’ll activate our Scroll Effects in the Advanced tab of our module. So, we click on the Advanced tab, then we scroll down to the Scroll Effects tab.

Activating Scroll Effects for our Call to Action Module

Once in the Scroll Effects tab, there are several settings that we need to be aware of to create this subtle effect. First, we will keep the Sticky Position as Do Not Stick for this module. Next, we will be using the Fading In and Out Scroll Effect. We click on its icon to activate it. Thirdly, we want to enable the setting by activating the Enable Fading In and Out toggle.

A major part of this animation style is the figures used for the starting, mid, and ending opacity. These settings are activated when the module comes into the various sections of the screen viewport. For our example, we will be using the following settings:

Fading In and Out Settings:

  • Starting Opacity: 10%
  • Mid Opacity: 99%
  • Ending Opacity: 20%

For the Motion Effect Trigger, we want the Fading In and Out to begin when the Middle of the Element is within focus.

Fading In and Out Scroll Effects Settings

By using these settings, we can create a clean scroll effect within our Call to Action Module. Next, let’s see how we can animate the entrance of another Call to Action Module with the Animation tab.

Entrance Animations and Divi

An entrance animation takes place as a module enters your screen viewport. While Scroll Effects allows you to continuously interact with the module each time you scroll through its viewport, an entrance animation is activated once. An entrance animation can be looped, however, whether you scroll by it, hover over it, etc., it won’t become re-animated. Here’s how you create your entrance animation. We would like to use a Zoom animation once the module comes into view:

Within our Call to Action Module settings window, we click on the Design tab and scroll down to Animation. Within, we have several animation options that we can use once this module moves into focus. Click on the Zoom Animation Style. For the Animation Direction, we want to leave it as Center – the default – and leave all the other default settings.

Entrance animations and call to action

Using Sticky Effects with the Call to Action Module

Our final example will show us how to use Divi’s native Sticky Effects. For this, we’ll need to create a new row and section.

Click on the blue plus icon to add a new section.

Add new section for sticky call to action module

Then, select the one-column row layout.

Add new row for call to action module

We’ll be using our premade Call to Action Module so we can close the Add New Module window. For the section, we will start by entering the settings and setting a background color. To do this, click the gear icon to reach the section settings.

Enter section settings

Next, scroll down to the Background tab and set the background color to #f1ede1.

Setting the section background color

With the background in place, we now need to add spacing settings to ensure that our sticky Call to Action Module works as displayed. So, we click on the Design tab and then scroll to the Spacing section. This part is critical to ensure that we have enough room to see our Sticky animation take effect.

We use the following settings to amend the spacing of our section:

Section Spacing Settings:

  • Margin Top: 0px
  • Padding Top: 0px
  • Padding Bottom: 300px

Setting spacing for Sticky animation

Once we have entered these settings, we can save our work by clicking the green checkmark. Now, we’ll activate the Sticky effect within the row of our section. First, we enter the row settings by clicking the gear icon.

Enter row settings

Before we navigate to the Advanced tab, let’s set the background color for the row. Similarly to how we did with the section, we scroll down to the Background tab and set the Background Color to #000000.

Set background color for row

With this, our row almost looks like the Call to Action Module that we created at the start of this tutorial. However, we will use padding and margins to make this row extend from edge to edge. This will make the Sticky effect visually appealing and less intrusive when used for viewers of your website.

We now move to the Design tab and click on the Sizing tab. Next, we set the Width and Max Width to 100%.

Setting the stage for the width and max width settings

Moving along, we now scroll down to the Spacing tab and add equal top and bottom padding values of 20px. This helps to create a sleeker look with our call to action.

Adding padding to row

Now that we have the aesthetics covered, we can now move on to applying our Scroll Effect. We move to the Advanced tab, then we click on the Scroll Effects tab. Now, we activate the Sticky Position by selecting Stick to Top. We want our call to action to stick flush to the top of our screen, so we leave the Sticky Top Offset to 0px. The only other setting we’ll change will be the Bottom Sticky Limit, which we will now set to Section.

Scroll Effects settings with sticky

To Sum it Up

As you can see, by default, Divi has many features and ways to add animation and movement to your page. Whether you want to add movement to introduce your page or create interest in your content, Divi provides you with the tools to do so. We covered four different ways to animate the Call to Action Module, but you can use these same settings across the library of modules within Divi. You can also apply these settings to sections, columns, and rows to create vibrant and unique page designs for your users.

How are you using animation in Divi? Did any of these techniques interest you? Let us know in the comments section, and let’s get a conversation going!

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

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today