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).

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

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.

Latest Posts

Customize Lightbox Title Styling in the Divi Gallery Module

Adjust the appearance of the lightbox title that appears when visitors open images from a Divi Gallery to align with your brand and improve readability. Refining the title’s color, size, and weight enhances visual hierarchy, accessibility, and overall polish. In this...

Center the Lightbox Image Count in the Divi Gallery Module

Centering the image count in a gallery lightbox creates a cleaner, more balanced presentation and makes it easier for visitors to see where they are in the image set. This simple visual tweak can enhance readability, especially with larger images and longer captions,...

Style the Divi Gallery Module Lightbox Image Count

Tailor the appearance of the image counter in the Divi Gallery module lightbox to match your brand and improve readability. By customizing the counter’s color and typography, you ensure it displays clearly and suits your design. In this guide we show you how to style...

Customize the Lightbox Image Background Color in the Divi Gallery

Control the color that appears behind your images when users open in the gallery lightbox, including support for semi-transparent hues. This helps improve contrast for transparent images, align the experience with your brand palette, and create a more polished viewing...

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 *.