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 Posts

Set Custom CSS IDs for Individual Divi Accordion Items

Assigning unique CSS IDs to specific Divi Accordion items allows for precise control over styling, targeting, and linking within your page content. This ability is particularly useful when you want to apply custom designs or create anchor links to particular accordion...

Enable Swipe Navigation in the Divi Gallery Lightbox

Enabling swipe navigation in the Divi Gallery module's lightbox allows users to seamlessly browse through gallery images by swiping left or right, creating a more interactive and mobile-friendly experience. This functionality can significantly improve user engagement...

Disable Slide-In Animation for Divi Gallery Grid Images

Control how images appear in your Divi Gallery module by toggling the slide-in animation effect for grid layouts. Disabling the slide-in animation allows gallery images to load instantly and appear statically, providing a faster and distraction-free browsing...

Control Image Count Display in Divi Gallery Lightbox

Displaying or hiding the image count in the Divi Gallery module’s lightbox can help customize the user experience, depending on whether you want to give visitors an indication of gallery progress or prefer a cleaner, distraction-free view. The ability to toggle this...

Hide Gallery Image Titles in the Divi Lightbox Overlay

Displaying image titles in the lightbox overlay of the Divi Gallery module can sometimes be distracting or unnecessary, depending on your website’s design and user experience goals. Hiding these titles creates a cleaner and more focused viewing experience for visitors...

Random Posts