Using Hover Text Shadows to Create Interactive Content with Divi

Last Updated on September 16, 2022 by 12 Comments

Using Hover Text Shadows to Create Interactive Content with Divi
Blog / Divi Resources / Using Hover Text Shadows to Create Interactive Content with Divi
Play Button

Making your website stand out from similar websites can be hard but once you manage to do it, it’s almost always worth the effort and thought that has been put into it. To help you get inspired, we’re going to show you how to create interactive content when building websites with Divi.

The example that we’ll recreate in this tutorial will work particularly well for any about page you’re working on. You’ll be able to share facts or company information on hover using Divi’s built-in text shadow options. We’re also making sure these hover effects don’t apply on smaller screen sizes so the information and mobile experience don’t get lost.

Let’s get to it!

Preview

Before we dive into the tutorial, let’s take a quick look at the outcome you can expect.

Desktop

text shadows

Mobile

We’re making sure all of these hover interactions don’t apply on smaller screen sizes. While using the same section and modules, we’ll get the following simple outcome instead:

text shadows

Approach

  • The example we’ll recreate is great for about pages, but you can make it work with any 5-character or 6-character word (match it with the column structure)
  • Each one of the characters will be dedicated to an individual Text Module
  • We’re using a row with a sufficient number of columns to connect the different characters of the word and make them appear as if they were created in the same module
  • By default, we’ll make the text color of the Text Module match the section background color
  • To make sure the character remains readable, we’ll apply a white text shadow to the character as well
  • Once you hover the character, the text shadow will disappear and the text color will change which gives you the feeling that the text is filling up
  • While hovering a character, some additional information will show up as well
  • On smaller screen sizes, the company facts and/or information will be there from the beginning

Let’s Start Recreating!

Subscribe To Our Youtube Channel

Add New Section

Background Color

Open a new or existing page and add a regular section to it. Open the section settings and change the background color.

  • Background Color: #03006d

text shadows

Spacing

Then, go to the spacing settings of the section and add some custom top and bottom padding.

  • Top Padding: 50px
  • Bottom Padding: 50px

text shadows

Add New Row

Column Structure

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

text shadows

Sizing

Then, go to the sizing settings and allow the row to take up the entire width of the screen. This is an important step because it’ll allow us to determine the distance manually, using viewport units.

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

text shadows

Spacing

In the previous step, we’ve gotten rid of all the default sizing settings that come with a new row. We do, however, need to add some padding manually. Here, we are using viewport units to make sure the result remains the same throughout all desktop screen sizes.

  • Left Padding: 9vw (Desktop), 5vw (Tablet & Phone)
  • Right Padding: 5vw (Tablet & Phone)

text shadows

Add Text Module to Column 1

Add Content

Once you’re done modifying the row settings, you can go ahead and add the first Text Module to column 1. Add the first character as paragraph text and the content you want to appear on hover as list text.

text shadows

Default Text Settings

Then, go to the design tab and modify the default paragraph text settings. Make sure you use the same color for both the text and the section background.

  • Text Font Weight: Ultra Bold
  • Text Color: #03006d
  • Text Size: 27vw (Desktop), 0vw (Tablet & Phone)
  • Text Line Height: 1.1em
  • Text Shadow Blur Strength: 0.01em
  • Text Shadow Color: #ffffff
  • Text Orientation: Left

text shadows

text shadows

Hover Text Settings

To create the nice hover effect, we’ll need to modify these paragraph text settings on hover. Notice how we’re now using a completely transparent text shadow color to make it disappear.

  • Text Color: #ffffff
  • Text Shadow Color: rgba(255,255,255,0)

text shadows

text shadows

Default List Text Settings

Continue by going to the list text settings. An important part of these settings is making sure the text size on desktop is ‘0px’, but adding ’18px’ as the text size for smaller screen sizes. This will make sure the list text shows up on smaller screen sizes but doesn’t on desktop without it being hovered.

  • Unordered List Font Weight: Light
  • Unordered List Text Color: #ffffff
  • Unordered List Text Size: 0px (Desktop), 18px (Tablet & Phone)
  • Unordered List Text Shadow Color: rgba(255,255,255,0)
  • Unordered List Style Type: Circle
  • Unordered List Style Position: Outside
  • Unordered List Item Indent: 0px

text shadows

text shadows

Hover List Text Settings

We do want the list text to appear on hover. That’s why we’ll change around the text size on hover. Make sure the text size you use on hover is the same as the text size you use on smaller screen sizes. This will help ensure that there’s no hover effect on smaller screen sizes.

  • Unordered List Text Size: 18px

text shadows

Spacing

Continue by going to the spacing settings of the module and make some changes there as well.

  • Bottom Margin: 50px (Tablet & Phone)
  • Right Margin: -4vw (Desktop), 0vw (Tablet & Phone)

text shadows

Clone Text Module 4 Times & Place Duplicates in Remaining Columns

Now that we’re done modifying the first module in column 1, we can go ahead and clone the module four times and place each one of the duplicates in the remaining columns. In the upcoming steps, we’ll modify each one of the duplicates to match with the new character.

text shadows

Change Text Module in Column 2

Change Content

Open the duplicate in column 2 and change the content.

text shadows

Change Spacing

Then, go to the spacing settings and change the custom margin values.

  • Bottom Margin: 50px (Tablet & Phone)
  • Left Margin: -2vw (Desktop), 0vw (Tablet & Phone)
  • Right Margin: -2vw (Desktop), 0vw (Tablet & Phone)

text shadows

Change Text Module in Column 3

Change Content

Change the content of the duplicate in column 3 as well.

text shadows

Change Spacing

Along with the spacing settings in the design tab.

  • Bottom Margin: 50px (Tablet & Phone)
  • Left Margin: -5.5vw (Desktop), 0vw (Tablet & Phone)
  • Right Margin: 1.5vw (Desktop), 0vw (Tablet & Phone)

text shadows

Change Text Module in Column 4

Change Content

Continue by opening the Text Module in column 4 and change the content here too.

text shadows

Change Spacing

Then go to the design tab and change the custom margin values in the spacing settings.

  • Bottom Margin: 50px
  • Left Margin: -6vw (Desktop), 0vw (Tablet & Phone)
  • Right Margin: 2vw (Desktop), 0vw (Tablet & Phone)

text shadows

Change Text Module in Column 5

Change Content

On to the last duplicate. Change the content in the content box.

text shadows

Change Spacing

Along with the custom spacing settings.

  • Bottom Margin: 50px
  • Left Margin: -7vw (Desktop), 0vw (Tablet & Phone)
  • Right Margin: 3vw (Desktop), 0vw (Tablet & Phone)

text shadows

Preview

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

Desktop

text shadows

Mobile

text shadows

Final Thoughts

We know how important it is to make your website stand out from other websites out there. With Divi’s built-in options, you can get as creative as you want. This post is an example of how you can create interactive content on hover while making sure everything remains straightforward on smaller screen sizes. You can use the example we’ve recreated for any about page you’re currently working on. It’s a great way to share some facts and additional information about your company while having an interaction going on with your visitors. 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

Get a Free Butcher Shop Layout Pack for Divi

Get a Free Butcher Shop Layout Pack for Divi

Posted on April 15, 2024 in Divi Resources

Hey Divi Nation! Thanks for joining us for the next installment of our weekly Divi Design Initiative; where each week, we give away a brand new Layout Pack for Divi. This time around, the design team has created a beautiful Butcher Shop Layout Pack that’ll help you get your next Butcher Shop...

View Full Post
Get a Free Online Learning Layout Pack for Divi

Get a Free Online Learning Layout Pack for Divi

Posted on April 8, 2024 in Divi Resources

Hey Divi Nation! Thanks for joining us for the next installment of our weekly Divi Design Initiative; where each week, we give away a brand new Layout Pack for Divi. This time around, the design team has created a beautiful Online Learning Layout Pack that’ll help you get your next website up and...

View Full Post

12 Comments

  1. Not to sound negative but there have been a ton of tutorials dedicated to the use of hover effects and I am not quite sure why? The last time I checked mobile devices outrank desktop devices for web traffic. I am not convinced that most of these “hover” tutorials would ad any real-world value to the sites I build (perhaps they do for others??). I could not imagine billing a client for something like this when their first question would be “I can’t seem to see it on my phone?”. Just my two cents. Thanks

  2. Impressive!

    Another one to put in the toolbox of tips and tricks.

    I said it before, I’ll say again… These tutorials make the purchase of Lifetime subscription worth every penny.

  3. This theme is little completed and difficult to use but still i like this theme because of it’s features.

  4. This is such a nice theme and i am using this theme for my multiple blogs

  5. This is great, thanks man

  6. Hello,
    i have a problem . how can i add the first character as paragraph text and the content you want to display as list text when hovering? This is unfortunately not described in this otherwise great tutorial.

    • Got the same issue did not solve it yet im struggling on it
      all appears as Paragraph and look messy with 27vw
      please help

    • Okay
      ich have Found it works now.

    • Okay
      ich have Found it works now.

      • Hello,
        and how did you do to take only the letter A in paragraph?

        thank you
        jean luc

  7. I use Divi and happy with this theme. This post w.ll make my page more wonderfull

  8. Not in the best mood today after struggling all day yesterday with 3.19.15 which is a buggy mess. Need to things working before messing with this kind of dancing baloney. Cute, but I’d like to see the performance improved.

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today