Disable Divi Gallery Image "Slide In" Effect

Written by Dan Mossop

When you first view a Divi Theme gallery, the images will "slide in" from the left. If you don't want this slide in effect on your gallery images, you can disable it with the following CSS:

.et_pb_gallery_item {
	-webkit-animation: none !important;
	-moz-animation: none !important;
	-o-animation: none !important;
	-ms-animation: none !important;
	animation: none !important;
}

I've added an option into my Divi Booster plugin to disable the gallery "slide in" effect. It's available from Divi Booster version 2.0.8 onwards (under "Modules > Gallery).

Check out Divi Booster

Divi Booster upgrades Divi with hundreds of new features to help you build awesome sites with ease. Easily disable the gallery image "slide in" effect and customize your gallery modules effortlessly.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

9 Comments

  1. Ho my god at least !!! Thank you sooooooooooo much !

    Reply
    • Ha ha ha! You're very welcome! :)

      Reply
    • You're welcome, Milos :)

      Reply
  2. CSS worked brilliantly thanks!

    Reply
    • Great! Thanks Baxter :)

      Reply
  3. Couldn't get this to work — has this been depricated? Also not working in the DIVI Booster plugin

    Reply
    • Hi Chris, sorry you've been having issues with it. Did you manage to get it working? When I look at your linked page now, I can see that the code added by Divi Booster is taking effect and the slide-in effect has been disabled.

      I've just done some testing and it looks like it's still working with the latest version of Divi (both the code and the Divi Booster feature).

      A couple of things to note…

      First, I see that you're on wpengine and I think they have a default caching time of 10 minutes, so if you aren't seeing changes right away, either clear the caches or wait 10 minutes then check again – otherwise you might just be seeing an old version of the page.

      Second, there are couple of animation effects in the gallery. The code here is specifically for the initial slide-in effect applied when the page first loads, and all the gallery images are visible. There are other animations, such as the animated "zoom in" when you actually click on an image. That isn't addressed by this code, but let me know if that's what you actually need.

      Anyway, I hope you've now solved it, as it appears to me you have, but give me a shout if not. Thanks!

      Reply
  4. Thanks for pointing that out – was looking for this option a couple of days ago. We love divi booster! Thanks for such an awesome plugin!

    Reply

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.

Latest From Divi Booster

Fix Divi Text Module "Regular" Font Weight Not Working

Are you encountering an issue where the font weights in Divi's Text Module don't seem to apply as expected? In particular, you might find that when you set the text module's body text font weight to "Regular", your font is actually assigned a weight of 500 instead of...

Make the Divi Gallery Module Swipeable

The Divi Gallery Module comes with a slider mode that lets you display images in a slider with clickable left/right arrows to scroll through the images. For mobile / touchscreen users, you can improve the user experience by allowing your user to swipe to navigate to...

How to Use Divi Dynamic Content in Woo Modules Product Selector

Divi's Dynamic Content is a powerful feature that lets you populate your Divi modules and theme builder templates with data pulled in various sources, such as custom fields. This allows for efficient organization and maintenance of your sites.Unfortunately, Divi's...

Removing Gaps in Divi Builder Layouts

Designing a seamless, professional-looking website is often about managing space effectively. Gaps in Divi Builder - particularly excessive white space between sections, rows, or modules - can disrupt your layout, leading to a fragmented and less engaging user...

Random Divi Posts