How to Create Moving Image Shadows on Scroll in Divi

Last Updated on September 17, 2022 by 10 Comments

How to Create Moving Image Shadows on Scroll in Divi
Blog / Divi Resources / How to Create Moving Image Shadows on Scroll in Divi

In the world of web design, we usually think of shadows as something we can add in Photoshop or as a CSS property (like box-shadow or text-shadow). But with Divi, we can think outside the box (or box-shadow). With just a few adjustments to Divi’s built-in filter and scroll effect options, we can transform any image into a lifelike shadow.

In this tutorial, we are going to show you how to create moving image shadows on scroll in Divi. The trick is to find a PNG image with a unique shape so that, once the image is transformed, it will keep the shape and look like a realistic shadow of the image. After the image/shadow is ready, we can add a few scroll effects to move the shadow as the user scrolls. This unusual (yet familiar) effect will add a stunning design element that will bring new life to your site.

Let’s get started!

Sneak Peek

Here is a quick look at the design we’ll build in this tutorial.

Download the Layout 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 section layout to your Divi Library, navigate to the Divi Library.

Click the Import button.

In the portability popup, select the import tab and choose the download file from your computer.

Then click the import button.

divi notification box

Once done, the section layout will be available in 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,

Part 1: Designing the Section Layout

In this first part, we are going to design a quick section layout to complement the moving image shadow scroll effect.

Add the Two-Column Row

To get started, add a two-column row to the regular section.

divi moving image shadows

Add the Text Module

In the left column, add a new text module. This will serve as our mock text content.

divi moving image shadows

Text Content

Then paste the following HTML inside the body content:


<h2>Our Wedding</h2>
<p>Your content goes here. Edit or remove this text inline or in the module Content settings. You can also style every aspect of this content in the module Design settings and even apply custom CSS to this text in the module Advanced settings.</p>

divi moving image shadows

Text Design

Under the design tab, update the settings as follows:

  • Text Text Size: 16px
  • Text Line Height: 2em

divi moving image shadows

  • Heading 2 Font: comfortaa
  • Heading 2 Text Color: #444235
  • Heading 2 Text Size: 60px (desktop), 40px (tablet)

divi moving image shadows

Add Image Design Accent

Under the text module, we are going to add an image that will serve as a design accent to the text. We are going to use the image of a tree branch from the Holistic Healer Layout Pack. This will be the same image we will use later for our moving image shadows.

Add Image

Add a new image module under the text module.

divi moving image shadows

Then upload the image.

divi moving image shadows

Image Design

Under the design tab, bring down the opacity of the image using the filter settings.

  • Opacity: 20%

divi moving image shadows

Next, move the image over to the left and upward using the following transform option:

  • Transform Translate X-Axis: -20%
  • Transform Translate Y-Axis: -90%

divi moving image shadows

Image Position

Then give the image an absolute position.

  • Position: Absolute

divi moving image shadows

Part 2: Creating the Moving Image Shadows

Once the mock content in the left column are finished, we are ready to start creating the image and those moving image shadows.

Add Main Image

Add a new image module to the right column.

divi moving image shadows

Then upload an image that is at least 800px wide. Since we are going to be adding a moving image shadow of a tree branch, it makes sense to use a picture of somewhere outside.

divi moving image shadows

Then take out the default bottom margin under the module as follows:

  • Margin Bottom: 0px

Creating Moving Image Shadow 1

Now we are ready to create the first moving image shadow. The basic idea is to use an image in the PNG file format so that the transparent background of the image will not show. Then we will use the filter effects to adjust the brightness, opacity, and blur to transform the image to look like a shadow. Because the PNG image has a unique shape, the shadow will also keep the same shape.

Let’s start by adding the same PNG image of a branch from the Holistic Healer Layout Pack.

Here it is…

divi moving image shadows

Add the image module under the image in the right column.

divi moving image shadows

Then upload the image to the module.

divi moving image shadows

Image Filters

Under the design tab, update the filters to make the image look like a shadow.

  • Brightness: 0%
  • Opacity: 25%
  • Blur: 8px

divi moving image shadows

Image Position

Then give the image shadow an absolute position so that it sits above the main image above.

divi moving image shadows

Image Scroll Effects

To move the image shadow, update the following scroll effects.

Under the Horizontal Motion tab…

  • Enable Horizontal Motion: YES
  • Starting Offset: 0 (at 0%)
  • Mid Offset: -3 (at 50%)
  • Ending Offset: -6 (at 100%)

Under the Scaling Up and Down tab…

  • Enable Scaling Up and Down: YES
  • Starting Scale: 160% (at 0%)
  • Mid Scale: 160% (at 50%)
  • Ending Scale: 160% (at 100%)

(NOTE: This will enlarge the shadow to 160% and keep it there throughout the entire scrolling effect. But feel free to adjust the scale percentages at different points.)

Under the Rotating tab…

  • Enable Horizontal Motion: YES
  • Starting Rotation: 30° (at 0%)
  • Mid Rotation: 0° (at 50%)
  • Ending Rotation: -30° (at 100%)

divi moving image shadows

Checking the Result So Far

At this point, we can view the result so far by adding the following margin to the section temporarily so that we can scroll down the live page.

  • Margin: 70vh top, 70vh bottom

divi moving image shadows

Here is what the effect looks like so far.

Hiding the Column Overflow

In order to contain the image shadow within the same column of the main image, open the settings for column 2, and update the overflow options as follows:

  • Horizontal Overflow: Hidden
  • Vertical Overflow: Hidden

divi moving image shadows

Now check out the result.

Creating Moving Image Shadow 2

Once we have our first image shadow in place, it is easy to create another one. All we need to do is duplicate the existing image shadow and update the scroll effects. The dual moving image shadows will create a beautiful unveiling effect to the image.

Duplicate Existing Image Shadow

Using the Layers modal, duplicate the shadow image.

divi moving image shadows

Update Scroll Effects

Then open the settings for the duplicate and update the scroll effects as follows:

Under the Horizontal Motion tab…

  • Enable Horizontal Motion: YES
  • Starting Offset: 0 (at 0%)
  • Mid Offset: 3 (at 50%)
  • Ending Offset: 6 (at 100%)

Under the Rotating tab…

  • Enable Horizontal Motion: YES
  • Starting Rotation: 210° (at 0%)
  • Mid Rotation: 180° (at 50%)
  • Ending Rotation: 150° (at 100%)

divi moving image shadows

Here is the result…

Adding a Zoom-In Effect to the Main Image

Because the column overflow is hidden, we can scale the main image on scroll to create a subtle zoom-in (or ken burns effect) that will complement the moving image shadows.

To do this, open the settings for the main image and update the following:

Under the Scaling Up and Down tab…

  • Enable Scaling Up and Down: YES
  • Starting Scale: 100% (at 0%)
  • Mid Scale: 115% (at 50%)
  • Ending Scale: 130% (at 100%)

This will create a zoom-in effect as the user scrolls.

divi moving image shadows

Final Result

And here is the final result.

Final Thoughts

I hope these moving image shadows were as fun to build for you as they were for me. It is a simple, yet stunning design element that has the potential for even more creative additions. Feel free to explore adding different colors, blend modes, and other scroll effects to make the design your own.

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

Get a Free Augmented Reality Layout Pack for Divi

Get a Free Augmented Reality Layout Pack for Divi

Posted on March 25, 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 Augmented Reality Layout Pack that’ll help you get your next Augmented...

View Full Post
Download a Free Webinar Theme Builder Pack for Divi

Download a Free Webinar Theme Builder Pack for Divi

Posted on March 22, 2024 in Divi Resources

It’s time for another freebie! This time, we’re giving you a free Theme Builder Pack for Divi. Combining these with our beloved Divi Layout Packs is a great way to build the Divi website of your dreams with ease. This week, the design team has created a beautiful Webinar Theme Builder...

View Full Post
Get a Free Modeling Agency Layout Pack for Divi

Get a Free Modeling Agency Layout Pack for Divi

Updated on March 21, 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 Modeling Agency Layout Pack that’ll help you get your next Modeling...

View Full Post

10 Comments

  1. Jason, so great & beautiful idea!

    Thanks for sharing!

  2. Great idea!
    Thank you!

  3. Another great tutorial by a great person

    • I’m honored, Zahid. Thanks for the support. Means a lot.

  4. Thanks Jason for divi tips and i’ll definitely looking forward to create some for my own project.
    I’ll be looking to add more colors and modes to make as per my project theme and requirements. The scroll effects seems to be the best part to add creativity in overall design. thumbs up (y).

    • Agreed! They can really help for sure. The trick is to find that subtle balance between being creative without distracting from the content. Thanks for the comment.

  5. Great Article, we are upgrading our site with divi and this will be a good help. Thanks for sharing.

    • Awesome! Great to hear.

  6. I love this one, really nice motions Jason. Thanks!

    • Thanks, Herman.

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today