Skip to content

Commit 012fe7b

Browse files
authored
Update README.md
1 parent a9e0b7d commit 012fe7b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,17 @@ add_filter( 'baguettebox_selector', function( $selector ) {
111111
} );
112112
```
113113

114+
### Can I change or disable the animation on image transitions?
115+
116+
By default, baguetteBox.js shows a slide-in animation on image transitions. You can change it to the following filter to `'fadeIn'`:
117+
```
118+
add_filter( 'baguettebox_animation', function () { return 'fadeIn'; } );
119+
```
120+
Or disable the animation completely with `'false'`:
121+
```
122+
add_filter( 'baguettebox_animation', function () { return 'false'; } );
123+
```
124+
114125
## Screenshots
115126

116127
1. Simple, modern and minimalistic Lightbox for your Gallery Block<br>![Lightbox for the Gallery Block](https://github.com/goaround/gallery-block-lightbox/blob/master/.wordpress-org/screenshot-1.png)

0 commit comments

Comments
 (0)