How to Animate Your Global Header with Divi

Last Updated on September 16, 2022 by 8 Comments

How to Animate Your Global Header with Divi
Blog / Divi Resources / How to Animate Your Global Header with Divi
Play Button

Your header is one of the most important parts of your website. It connects your pages, posts and calls to action. It’s also one of the things your visitors automatically go looking for, so they don’t waste any time finding what they’re looking for. If you’re looking for a way to emphasize your header, you’ll enjoy this post. We’ll show you how to animate your custom-built global header using Divi’s Theme Builder. The possibilities are endless, but we’ll show you two animation examples that you can get started with right away. You’ll be able to download the JSON files for free as well!

Let’s get to it.

Preview

Before we dive into the tutorial, le’ts take a quick look at the two examples across different screen sizes.

Example #1

Desktop

animated global header

Mobile

animated global header

Example #2

Desktop

animated global header

Mobile

animated global header

Download The Animated Global Header for FREE

To lay your hands on the free animated global header, 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.

Subscribe To Our Youtube Channel

1. Go to Divi Theme Builder & Start Building Global Header

Go to Divi Theme Builder

Start by going to the Divi Theme Builder in your WordPress backend.

animated global header

Build Global Header From Scratch

Click on ‘Add Global Header’ and continue by selecting ‘Build Global Header’.

animated global header

2. Build Global Header Block Design

Section Settings

Spacing

Once you’re inside the template editor, you can start building the global header. We’re making sure we have a ‘block’ design going on so that we can, later on, add animations to two different containers; column + module. Open the section you can notice inside the template editor and remove all default top and bottom padding.

  • Top Padding: 0px
  • Bottom Padding: 0px

animated global header

Box Shadow

Add a box shadow next.

  • Box Shadow Blur Strength: 80px
  • Shadow Color: rgba(13,60,216,0.24)

animated global header

Z Index

And make sure you increase the section’s z index in the advanced tab too. This will make sure the global header content will appear on top of all page/post content.

  • Z Index: 99999

animated global header

Add New Row

Column Structure

Continue by adding a new row to the section using the following column structure:

animated global header

Sizing

Without adding any modules yet, open the row settings and allow the row to take up the screen’s entire width.

  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Equalize Column Heights: Yes
  • Width: 100%
  • Max Width: 100%

animated global header

Spacing

Remove all default top and bottom padding next.

  • Top Padding: 0px
  • Bottom Padding: 0px

animated global header

Visibility

Make sure you set the row’s overflows to ‘visible’ too.

  • Horizontal Overflow: Visible
  • Vertical Overflow: Visible

animated global header

Column Settings (All Three)

Background Color

Once you’ve completed the row settings, you’ll need to style the columns as well. Open each one of the columns and change their background color accordingly:

  • Column 1 Background Color: #efefef
  • Column 2 Background Color: #ffcb0f
  • Column 3 Background Color: #2848ff

animated global header

Spacing

Add some custom top and bottom padding to each column as well.

  • Top Padding: 0.5vw (Desktop), 1vw (Tablet & Phone)
  • Bottom Padding: 0.5vw (Desktop), 1vw (Tablet & Phone)

animated global header

Main Element

And to make sure all column content is centered vertically, we’ll add three lines of CSS code to each column’s main element.

display: flex;
flex-direction: column;
justify-content: center;

animated global header

Column 1 Z Index

Last but not least, open the column 1 settings and increase the z index in the visibility settings.

  • Z Index: 10

animated global header

Add Menu Module to Column 1

Select Menu

Time to add modules, starting with a Menu Module in column 1. Select a menu of your choice.

animated global header

Upload Logo

Upload your logo next.

animated global header

Remove Background

Continue by removing the module’s background color.

animated global header

Layout

Move on to the design tab and make sure the following settings apply to the layout:

  • Style: Left Aligned
  • Dropdown Menu Direction: Downwards

animated global header

Menu Text Settings

Style the text settings next:

  • Menu Font: Montserrat
  • Menu Text Color: #000000
  • Menu Text Size: 0.7vw (Desktop), 2vw (Tablet), 3vw (Phone)

animated global header

Dropdown Menu Settings

Along with the dropdown menu settings.

  • Dropdown Menu Line Color: #ffffff

animated global header

Icons Settings

And change the hamburger menu icon color too.

  • Hamburger Menu Icon Color: #2848ff

animated global header

Sizing

Continue by changing the logo max width across different screen sizes.

  • Logo Max Width: 6vw (Desktop), 9vw (Tablet), 13vw (Phone)

animated global header

Spacing

And complete the module’s settings by adding some left and right margin.

  • Left Margin: 2vw
  • Right Margin: 2vw

animated global header

Add Code Module to Column 1

Insert CSS Code for VW Responsiveness

Now, in the menu module, we’ve used the viewport width unit for our text size and spacing values. We did this to make sure you can place up to 8 menu items across different desktop screen sizes, without it splitting up into two lines. We’ll need to make sure the space between the menu items is created with the vw unit as well. To do that, we’ll add a Code Module to column 1 and insert the following lines of CSS code:

<style>
.et-menu>li {
padding-left: 1vw !important;
padding-right: 1vw !important;
}
</style>

animated global header

Add Social Media Follow Module to Column 2

Add Social Networks

On to the next column, there, we’ll need a Social Media Follow Module. Add the social networks of your choice.

animated global header

Reset Social Network Styles Individually

Continue by resetting each network’s settings.

animated global header

Alignment

Complete the module’s settings by changing the module alignment.

  • Module Alignment: Center

animated global header

Add Button Module to Column 3

Add Copy

On to the next and last column. There, we’ll only need a Button Module. Add some copy of your choice.

animated global header

Alignment

Move on to the design tab and change the button alignment.

  • Button Alignment: Center

animated global header

Button Settings

Complete the module’s settings by styling the button.

  • Use Custom Styles For Button: Yes
  • Button Text Size: 1vw (Desktop), 1.2vw (Tablet), 2vw (Phone)
  • Button Text Color: #ffffff
  • Button Border Width: 0px

animated global header

  • Button Border Radius: 0px
  • Button Font: Montserrat
  • Button Font Weight: Ultra Bold
  • Button Font Style: Uppercase

animated global header

3. Add Matching Animation to Elements

Global Header Animation Combo #1

animated global header

Column 1 Animation

Now that we’ve built the global header, it’s time to add the animations! To recreate the first animation, open the column 1 settings and add the following animation:

  • Animation Style: Zoom
  • Animation Direction: Up
  • Animation Starting Opacity: 100%

animated global header

Column 2 Animation

Add the following animation settings to column 2 next:

  • Animation Style: Zoom
  • Animation Direction: Down
  • Animation Delay: 500ms
  • Animation Starting Opacity: 100%

animated global header

Column 3 Animation

Complete the column settings by assigning the following animation to column 3:

  • Animation Style: Zoom
  • Animation Direction: Up
  • Animation Delay: 1000ms
  • Animation Starting Opacity: 100%

animated global header

Module Animations (All Three Modules)

Once you’ve completed the column settings, open each one of the modules individually and use the following animation for them:

  • Animation Style: Fade
  • Animation Delay: 1500ms

animated global header

Global Header Animation Combo #2

animated global header

Column 1 Animation

Want to recreate the second animation set instead? Open the column 1 settings and add the following animation:

  • Animation Style: Slide
  • Animation Direction: Up
  • Animation Starting Opacity: 100%

animated global header

Column 2 Animation

Use the following animation settings for column 2 next:

  • Animation Style: Slide
  • Animation Direction: Up
  • Animation Delay: 500ms
  • Animation Starting Opacity: 100%

animated global header

Column 3 Animation

And complete the column settings by applying the following animation settings to column 3:

  • Animation Style: Slide
  • Animation Direction: Up
  • Animation Delay: 1000ms
  • Animation Starting Opacity: 100%

animated global header

Module Animations (All Three Modules)

Then, open each module individually and add the following animation:

  • Animation Style: Slide
  • Animation Direction: Down
  • Animation Delay: 1500ms

animated global header

4. Save Builder Changes & View Result

Once you’ve completed the animation settings, you can save the global header, exit the Theme Builder and view the outcome on your website!

animated global header

animated global header

Preview

Now that we’ve gone through all the steps, let’s take a final look at the examples across different screen sizes.

Example #1

Desktop

animated global header

Mobile

animated global header

Example #2

Desktop

animated global header

Mobile

animated global header

Final Thoughts

In this tutorial, we’ve shown you how to animate your global header using Divi’s built-in options and the Theme Builder. This is a great way to draw attention to your website’s header. With Divi’s built-in animation options, the possibilities are endless. To help you get started, we’ve shown you two different examples. You were able to download the JSON files for free as well!

If you’re eager to learn more about Divi and get more Divi freebies, make sure you subscribe to our email newsletter and YouTube channel so you’ll always be one of the first people to know and get benefits from this free content.

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

8 Comments

  1. Really cool!!! But there is a way to keep the menu fixed when u scroll?

  2. Looks really nice, although I’m unable to import the JSON file in Divi Library as well as by directly dropping in in the editor. Could you help me out with this?

  3. Looks nice, thanks!

    My only tip would be to make the animations fast, since it needs to load and animate every time on every page. Users might get frustrated with that experience after awhile, especially on functioning items. People don’t want to wait for a menu to load when they’re ready to click. I feel I’m removing most of my animations to improve performance and saving them for where they make the most impact: content.

    On a side note, I say this as my screen glitches from this post. And my system fan is going haywire. Am I the only one experiencing this?

    • Haven’t totally read through this tut, but there’s no way to change the animation speed?

  4. I quickly skimmed and then did a double-take. You call both examples “Example #1” 🙂 But, this is a slick design. I like it. Keep these header designs coming. I love all the flexibility and options the Theme Builder is providing.

    • Woops! Thanks for pointing that out, changed it. Happy you’re enjoying all Theme Builder tutorials, Kevin, we’ll keep them coming! 🙂

  5. Thanks! I will use this example in future projects.

    • You’re welcome, happy to hear that, Viktor! 🙂

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today