11
    <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.

unor
  • 92,415
  • 26
  • 211
  • 360
itnotsopro
  • 117
  • 1
  • 1
  • 8

4 Answers4

21

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
});
Jai
  • 74,255
  • 12
  • 74
  • 103
7

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

Benjamin
  • 1,067
  • 20
  • 30
1

animateIn: 'fadeIn', animateOut: 'fadeOut',

Will Work version - Owl Carousel v2.2.1

Mr. Sen
  • 11
  • 2
0

For latest version of Owl Carousel(Version2.3.4) just use:

animateOut: 'fadeOut',
4b0
  • 21,981
  • 30
  • 95
  • 142