<script>
$(document).ready(function () {
$("#owl-demo").owlCarousel({
navigation: true,
navigationText: ["", ""],
slideSpeed: 300,
paginationSpeed: 400,
autoPlay: true,
mouseDrag: true,
singleItem: true,
animateIn: 'fadeIn',
animateOut: 'fadeOut'
});
});
</script>
Above is my owl carousel quote, i want to have the fade in and out effect but it doesnt seems to appear. Instead it appears as sliding effect.
Interesting would be which version you are using.. Your code example mixes up options from versions 1.3.* and 2.*.
Since version 2.* you need:
animateIn: 'fadeIn',
animateOut: 'fadeOut',
https://owlcarousel2.github.io/OwlCarousel2/docs/api-options.html
In version 1.3.* you need:
transitionStyle: "fade"
http://www.landmarkmlp.com/js-plugin/owl.carousel/#customizing
I don't think there is any option for fade transition:
transitionStyle: "fade" // not available in the docs
another option is to use animate.css
in conjunction with it:
$("#owl-demo").owlCarousel({
navigation: true,
navigationText: ["", ""],
slideSpeed: 300,
paginationSpeed: 400,
autoPlay: true,
mouseDrag: true,
singleItem: true,
animateIn: 'fadeIn', // add this
animateOut: 'fadeOut' // and this
});
animateIn: 'fadeIn', animateOut: 'fadeOut',
Will Work version - Owl Carousel v2.2.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With