How to Create an Animated Mobile Split-Content Hero Section with Divi

Last Updated on September 16, 2022 by 13 Comments

How to Create an Animated Mobile Split-Content Hero Section with Divi
Blog / Divi Resources / How to Create an Animated Mobile Split-Content Hero Section with Divi

Creating a hero section that stands out is really important. And not only should it stand out, but it should also be split up into multiple elements that empower the call to action that is there. The easy-to-understand structure split-content hero sections have makes them really popular and frequently used among different kinds of websites.

And while making split-content hero sections for desktop is straightforward, making them for smaller screen sizes may not be. That’s where this tutorial will come in handy. We’re going to recreate a highly-interactive mobile-split hero section that will not only look good on mobile but across all different screen sizes. We’re also combining some great animations to make the design style match 2019 perfectly. We hope this tutorial inspires you to create your own mobile split-content hero sections.

Let’s get to it!

Preview

Before we dive into the tutorial, let’s take a look at the outcome across different screen sizes.

Mobile

mobile split-content

Desktop

mobile split-content

Let’s Start Recreating!

Add New Section

Spacing

Start by creating a new page or opening an existing one. Add a new regular section to it, go to the spacing settings and remove all the default top and bottom padding.

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

mobile split-content

Add New Row

Column Structure

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

mobile split-content

Background Color

Without adding any modules yet, open the row settings and add an entirely black background color.

  • Background Color: #000000

mobile split-content

Column 1 Background Color

Add a black background color to the first column as well.

  • Column 1 Background Color: #000000

mobile split-content

Column 2 Background Color

Same thing for the second column.

  • Column 2 Background Color: #000000

mobile split-content

Sizing

Then, go to the sizing settings and allow the row and its columns to take up the entire width of the screen.

  • Make This Row Fullwidth: Yes
  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Equalize Column Heights: Yes

mobile split-content

Spacing

We’re also removing all the default top and bottom padding of the row.

  • Top Padding: 0px
  • Bottom Padding: 0px
  • Right Padding: 1vw

mobile split-content

Display

Last but not least, we’ll make sure both columns appear next to each other on smaller screen sizes as well. To do that, we’ll need to add one single line of CSS code to the advanced tab of the row.

display: flex;

mobile split-content

Add Image Module to Column 1

Leave Image Box Empty

Time to add all the different modules we need! Start with the Image Module in the first column. Instead of uploading an image to the image box, we’ll upload the image to the background settings in the upcoming steps. This will allow us to play around with how the image is positioned and how much space it takes up in our row.

mobile split-content

Add Background Color

Go to the background settings of the Image Module and add a background color. In the next step, we’ll combine this background color and a background image using a blend effect to darken the image.

  • Background Color: #686868

mobile split-content

Add Background Image

Add a background image of your choice and modify the background settings accordingly:

  • Background Image Size: Cover
  • Background Image Position: Center
  • Background Image Repeat: No Repeat
  • Background Image Blend: Multiply

mobile split-content

Sizing

We’ve used two equally-sized columns for the row we’re working on, but the outcome doesn’t look that way. We’re going to manually change the size of each module we add to make it seem like we’re using a different column structure. The reason why we’re doing this (instead of just choosing another column structure) is to make everything look good and responsive on smaller screen sizes as well. Go to the sizing settings of the Image Module and modify the width.

  • Width: 88%
  • Module Alignment: Left

mobile split-content

Spacing

We now get to decide on the size of our image in the spacing settings. We’re also using a viewport unit for these values to make sure our design remains fully responsive across all screen sizes.

  • Top Padding: 26.3vw (Desktop), 48vw (Tablet), 72vw (Phone)
  • Bottom Padding: 26.3vw (Desktop), 48vw (Tablet), 72vw (Phone)

mobile split-content

Animation

Last but not least, we’ll add a slide animation to our Image Module. Once you apply the animation, you’ll notice that the image will only start showing up from the moment it enters the first column. The second column’s background color stays on top of the Image Module while it’s sliding to the left.

  • Animation Style: Slide
  • Animation Repeat: Once
  • Animation Direction: Left
  • Animation Duration: 1450ms
  • Animation Intensity: 60%
  • Animation Starting Opacity: 100%

mobile split-content

Add Button Module to Column 1

Add Copy

The next module we need in column 1 is a Button Module. Enter some copy of your choice.

mobile split-content

Button Settings

Then, go to the design tab and change the button settings.

  • Use Custom Styles for Button: Yes
  • Button Text Size: 1.5vw (Desktop), 2.5vw (Tablet), 4vw (Phone)
  • Button Text Color: #ffffff
  • Button Background Color: #e02b20
  • Button Border Width: 0px
  • Button Border Radius: 1px
  • Button Font: Poppins
  • Font Weight: Heavy

mobile split-content

mobile split-content

Spacing

Modify the spacing values as well.

  • Top Margin: -3.3vw (Desktop), -6vw (Tablet), -9.1vw (Phone)
  • Left Padding: 8vw
  • Right Padding: 8vw

mobile split-content

Box Shadow

And add a subtle box shadow to create some depth on the page.

  • Box Shadow Blur Strength: 20px
  • Shadow Color: rgba(0,0,0,0.27)

mobile split-content

Add Text Module #1 to Column 2

Add H1 Content

On to the second column! The first module we’ll need there is a Text Module. Add some H1 content of your choice.

mobile split-content

H1 Text Settings

Then, go to the design tab and modify the H1 text settings.

  • Heading Font: Poppins
  • Heading Text Color: #ffffff
  • Heading Text Size: 4vw (Desktop), 5vw (Tablet), 6vw (Phone)

mobile split-content

Spacing

Change around the spacing values too.

  • Top Margin: 12vw
  • Left Margin: -20vw
  • Right Margin: 17vw (Desktop), 15vw (Tablet), 1vw (Phone)

mobile split-content

Animation

And add a subtle animation.

  • Animation Style: Slide
  • Animation Repeat: Once
  • Animation Direction: Down
  • Animation Duration: 1450ms
  • Animation Intensity: 10%
  • Animation Starting Opacity: 100%

mobile split-content

Add Divider Module to Column 2

Visibility

The next module we need in the second column is a Divider Module. Make sure the ‘Show Divider’ option is enabled.

  • Show Divider: Yes

mobile split-content

Color

Then, go to the design tab and change the divider color.

  • Color: #e02b20

mobile split-content

Animation

Add an animation to the Divider Module next.

  • Animation Style: Slide
  • Animation Repeat: Once
  • Animation Direction: Right
  • Animation Duration: 1450ms
  • Animation Intensity: 83%
  • Animation Starting Opacity: 100%

mobile split-content

Add Text Module #2 to Column 2

Add Content

On to the next and last module we need in the second column! Add a description of your choice.

mobile split-content

Text Settings

Then, go to the text settings in the design tab and make some changes accordingly:

  • Text Font: Poppins
  • Text Font Weight: Light
  • Text Color: #919191
  • Text Size: 0.7vw (Desktop), 1.8vw (Tablet), 2.2vw (Phone)
  • Text Letter Spacing: 0.1vw
  • Text Line Height: 2.2em

mobile split-content

Spacing

Modify the spacing values as well.

  • Top Margin: 9vw (Desktop), 19vw (Tablet), 23vw (Phone)
  • Bottom Margin: 12vw (Desktop), 19vw (Tablet), 23vw (Phone)
  • Left Margin: -3vw
  • Right Margin: 20vw (Desktop), 6vw (Tablet), 3vw (Phone)

mobile split-content

Animation

Last but not least, add a fade animation to the module and you’re done!

  • Animation Style: Fade
  • Animation Repeat: Once
  • Animation Duration: 1450ms
  • Animation Delay: 1000ms
  • Animation Starting Opacity: 0%

mobile split-content

Preview

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

Mobile

mobile split-content

Desktop

mobile split-content

Final Thoughts

In this post, we’ve shown you how to create stunning split-content hero sections using Divi. Split-content hero sections are really popular and frequently used on the web but it’s important to make sure they’re highly responsive as well. We hope this tutorial will help you create mobile split-content hero sections for the upcoming websites you build! If you have any questions or suggestions, make sure you leave a comment in the comment section below!

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

13 Comments

  1. I followed all the steps and the result was exactly as she demonstrated it. using this as a banner for a product page of my client’s website.

    Am enjoying the latest tutorials in Divi! Keep it up.

  2. Beautiful! Just a live demo link and the json-file missing. Hope to see this as a ET standard soon.

  3. Just finished reading and offer an apology: You DID do some teaching. Thanks. But I see others had questions about display: flex; too.

  4. Ok. Here’s a tip for the tutors.

    When you get to the “Display” section up top and you add the CSS Code ” display: flex; “, this is your teachable moment. This is where you could REALLY help those of us who are on the new end of the CSS spectrum.

    Tell us WHY we are adding display: flex;
    Tell us WHAT display: flex; does
    Give us a few other reasons to use it on our own later in life.
    THIS is where we could REALLY learn.

    If you DON’T do teaching like this, you might be better served to just give us the json.
    What’s happening is that we are simply copying and pasting with little or no understanding for the reasons behind it.

    It’s my Chef Tell story about his Cordon Bleu recipe he showed us how to make on PM Magazine. My life learning was how to quickly and easily dice an onion. Long after his recipe faded into an unused past, my onion skills remain.

    You could have that same result if you were focused on instilling learning, not simply creating an ordered “create by the numbers” plan to achieve today’s random recipe.

    BTW, This is a good design idea I will use but I will have teach myself what things mean.

    And really, what do I know?

  5. Very Nice
    like this one and will try out

  6. Nice one!

  7. It looks pretty nice but on mobile, I think the text should only be on the black section. Anyway, thanks for the cool tutorial.

  8. Very nice. Thanx Donjetë

  9. This really looks nice! I tried to build it according to your instructions, only I don’t seem to get it working fullscreen. On desktop the button is below the bottom screen edge, on mobile the layout ends some place above the bottom screen edge. Am I missing something?

  10. One of the best effects I’ve seen for Divi, and looks amazing on mobile too.

  11. One of the best effects I’ve seen for Divi, and looks amazing on mobile too.

  12. Just tried this, the first step by step guide I have given a go!

    It looks and works GREAT, thank you for sharing.

    Is using display: flex; to ensure columns display side by side on mobile fairly standard?

    I use CSS a little more involved to achieve this however your display: flex; is so much easier.

    Again thank you for the guide.

  13. Beatiful. I.ll try to do it. Thanks

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today