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

Hide the Page Title in the Hello Elementor Theme

Hiding the page title in the Hello Elementor theme allows you to create a cleaner and more customized page layout, free from default headings that may not fit your design. This is particularly useful for landing pages or custom content layouts where the default page...

How to Hide a Divi Module When Scrolling Up or Down

In this quick tutorial, I’ll show you how to hide a Divi module when scrolling in a specific direction (up or down), so that the module only shows when you want it to. This is especially useful when using Divi’s Scroll Effects feature and you have a effect you want to...

Fade a Divi Image Module Edge into the Background

Want to create a stylish fade effect on your Divi image module—where one side fades smoothly into the background? With a bit of CSS, you can make any edge (or corner) of the image fade out: top, bottom, left, right, or even diagonally.Fade a Divi Image Module Edge...

Hide the Header and Footer in the Hello Elementor Theme

Removing the default header and footer from your Hello Elementor theme allows for a streamlined and distraction-free website design. This is especially useful when creating unique landing pages, full-width layouts, or custom headers and footers with a page builder. In...

Setting up the Divi Password Box Module

Setting up password protection on a page can help you control access to sensitive or private content in WordPress, allowing only authorized visitors to view certain sections. With the Divi Password Box module, you can replace the plain Divi password form with a fully...

Random Posts