Title: Transition speed
Last modified: November 10, 2021

---

# Transition speed

 *  Resolved [shemakeswebsites](https://wordpress.org/support/users/shemakeswebsites/)
 * (@shemakeswebsites)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/transition-speed-10/)
 * Hello, how do we slow down the transition speed? Thanks so much!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [shemakeswebsites](https://wordpress.org/support/users/shemakeswebsites/)
 * (@shemakeswebsites)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/transition-speed-10/#post-15054183)
 * Hello again, when I try to add in the fadein animation the plugin breaks. Can
   you please help?
 * I’ve tried to edit your gallery-block-lightbox.php using this guide: [https://feimosi.github.io/baguetteBox.js/](https://feimosi.github.io/baguetteBox.js/)
 * Thank you.
 *  Plugin Author [Johannes Kinast](https://wordpress.org/support/users/goaroundagain/)
 * (@goaroundagain)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/transition-speed-10/#post-15058105)
 * Hi [@shemakeswebsites](https://wordpress.org/support/users/shemakeswebsites/),
 * I don’t see an option to change the transition speed (between images?).
 * If you want animation: ‘fadeIn’ you have to change the following line [https://github.com/goaround/gallery-block-lightbox/blob/af7a096f3b6134662edca2ba7cfe63d8ce68a38a/gallery-block-lightbox.php#L14](https://github.com/goaround/gallery-block-lightbox/blob/af7a096f3b6134662edca2ba7cfe63d8ce68a38a/gallery-block-lightbox.php#L14)
   to
 * `wp_add_inline_script( 'baguettebox', 'window.addEventListener("load", function(){
   baguetteBox.run(".wp-block-gallery,:not(.wp-block-gallery)>.wp-block-image,.wp-
   block-media-text,.gallery,.wp-block-coblocks-gallery-masonry,.wp-block-coblocks-
   gallery-stacked,.wp-block-coblocks-gallery-collage,.wp-block-coblocks-gallery-
   offset,.wp-block-coblocks-gallery-stacked",{captions:function(t){var e=t.parentElement.
   classList.contains("wp-block-image")?t.parentElement.querySelector("figcaption"):
   t.parentElement.parentElement.querySelector("figcaption,dd");return!!e&&e.innerHTML},
   filter:/.+\.(gif|jpe?g|png|webp|svg|avif|heif|heic|tif?f|)($|\?)/i, animation:'
   fadeIn'});});' );`
 * But you have to fork the plugin. Otherwise, each plugin update will reset your
   changes.
 *  Thread Starter [shemakeswebsites](https://wordpress.org/support/users/shemakeswebsites/)
 * (@shemakeswebsites)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/transition-speed-10/#post-15059980)
 * Thank you very much for your help, but when I try to use this code, I get a server
   error. Have you tested this? Thank you!
 *  Plugin Author [Johannes Kinast](https://wordpress.org/support/users/goaroundagain/)
 * (@goaroundagain)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/transition-speed-10/#post-15061380)
 * `wp_add_inline_script( 'baguettebox', 'window.addEventListener("load", function(){
   baguetteBox.run(".wp-block-gallery,:not(.wp-block-gallery)>.wp-block-image,.wp-
   block-media-text,.gallery,.wp-block-coblocks-gallery-masonry,.wp-block-coblocks-
   gallery-stacked,.wp-block-coblocks-gallery-collage,.wp-block-coblocks-gallery-
   offset,.wp-block-coblocks-gallery-stacked",{captions:function(t){var e=t.parentElement.
   classList.contains("wp-block-image")?t.parentElement.querySelector("figcaption"):
   t.parentElement.parentElement.querySelector("figcaption,dd");return!!e&&e.innerHTML},
   filter:/.+\.(gif|jpe?g|png|webp|svg|avif|heif|heic|tif?f|)($|\?)/i, animation:"
   fadeIn"});});' );`
 * this should work
 *  Thread Starter [shemakeswebsites](https://wordpress.org/support/users/shemakeswebsites/)
 * (@shemakeswebsites)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/transition-speed-10/#post-15072507)
 * Thank you so much!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Transition speed’ is closed to new replies.

 * ![](https://ps.w.org/gallery-block-lightbox/assets/icon.svg?rev=2788519)
 * [Lightbox for Gallery & Image Block](https://wordpress.org/plugins/gallery-block-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gallery-block-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-block-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-block-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-block-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-block-lightbox/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [shemakeswebsites](https://wordpress.org/support/users/shemakeswebsites/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/transition-speed-10/#post-15072507)
 * Status: resolved