Hi everyone. Today we talk about Divi Aimations. Few weeks ago Nick and his Elegant team made a great – like all ones – Feature Update introducing a new set of Animations for each single module. So now we can animate everything and in the way we prefer thanks to the great Animations customization (setting for example the animation delay, the duration and direction, the looping or not and so on). However, two things about Animations still left out, the possibility to choose at what viewport point the animation have to be triggered ( about this we will talk later on in another post ) and the choice of make the animation live either when scrolling down either when scrolling up. So, someone probably remembers that for this purpose some years ago the same Elegant Themes Blog gave a solution concerning the default animations of the image and blurb modules ( you can find the post here: ); but now, with the new set of animations a little code customization has been required in order to get the same result. So, let’ get started!
  • One 40% 40%
  • Two 28% 28%
  • Three 76% 76%

Blurb Animation

This is, in short, the result we will get at the end of the post. An animation triggered both scrolling up and down, how many times we want, scrolling and re-scrolling. As you can see, beside our Bar module animation we also have a blurb without animation but with the default icon animation (top to bottom). So with the code we will see few lines below we get the result above: either the new Animations set either the default blurb animation will be triggered both scrolling down and up. You have simply to add this code in your Divi Theme Options -> Integration -> <body>

And then, while you don’t need to add anything to your blurb modules (in order to get the icon animation), you simply have to add the Css Class “et_waypoint” in the modules or sections you want to animate.

BOTH SCROLLING FOR NEW ANIMATIONS AND ONCE FOR BLURB ICONS

However, you may want the new animations to be triggered both scrolling down and up, but maintening the default behaviour for the blurb icons: that is be animated when scrolling the first time only. To get this result you simply have to delete ‘et-animated‘ from the classes added and removed in the jQuery code above (see lines 20 and 22). Now the both scrolling effect will only target our new animations, while the blurb icon will be animated once.

BOTH SCROLLING AND ONLY FOR NEW ANIMATIONS

Finally, you could want the Blurb icon doesn’t have animation at all. In order to do this you simply have to change the class “et-waypoint” in our jQuery code (line 4) and also in the Custom Css Class of the modules with new animations that you want to trigger both scrolling down and up.

FINAL THOUGHTS

So we already are at the end of today’s post. Hope it can be a useful trick to get the wished result, closing with the raccomandtion of not abuse of animations in your layouts and designs. The Animation and the Divi Animation overall can be really a great design element but you always have to question yourself: is this animation really needed? If the answer is “No” or “Maybe not” we suggest you to leave out the idea of adding the animation. See you next post!

SupportHost

You have Successfully Subscribed!

CodeCanyon Plugins

You have Successfully Subscribed!

Elegant Themes

You have Successfully Subscribed!

Try Divi!

You have Successfully Subscribed!

Divi Plugins

You have Successfully Subscribed!

Advanced Blurbs Plugin

You have Successfully Subscribed!

Bloom!

You have Successfully Subscribed!

Divi Cake Layouts

You have Successfully Subscribed!

Divi Cake Plugins

You have Successfully Subscribed!