2

I need to disable swipe effect on owl carousel 2 and add only fadeIn effect. How is it possible ?

I have tried this code but no luck at all.

animateOut: 'fadeIn',
animateIn: 'fadeout',
nav:true, 

Thanks

Ismail Farooq
  • 6,309
  • 1
  • 27
  • 47
sunilkjt
  • 985
  • 4
  • 12
  • 21

3 Answers3

7
mouseDrag: false,
touchDrag: false
Mike
  • 852
  • 9
  • 17
Gapur
  • 71
  • 1
  • 3
  • It could be helpful to explain a bit more why changing these properties would solve the issue. – Mike Jan 25 '19 at 10:45
0

You need to add some css see here

fadeOut value is the only built-in CSS animate style. However there are tons of additional CSS animations that you can use in Owl. Simply download animate.css library and you are ready to extend Owl with new fancy transitions.

So if you want to add just fade effect you need to add some css like this.

.animated {
    visibility:hidden;
    -webkit-animation-delay: 0.3s;
    -moz-animation-delay: 0.3s;
    -o-animation-delay: 0.3s;
    -ms-animation-delay: 0.3s;
}

.owl-item.animated {
    visibility: visible;
}
Ismail Farooq
  • 6,309
  • 1
  • 27
  • 47
0

if you want to remove all the effects just add this

animateIn: 'false',

and it will remove it. now if you want to add fade-in or fade-out effect only or both add this code

animateOut: 'fadeOut', // for fade out only 
// add both if you want both effect
animateIn: 'fadeIn', //for fade in only