0

I am trying to make my carousel to use different effect on each slide.What i have done so long is :

var effect = ['flipInX', 'fadeInLeft', 'fadeInRight']
                for(var i=0; i < 3; i++){
                    $("#owl-main").owlCarousel({
                        dots: true,
                        animateIn: effect[i],
                        items: 1,
                        autoplay: true,
                        loop:true,
                    });
                }

Is there any solution or i am trying to do something that is not possible? Thank you in advance!

Toma Tomov
  • 1,476
  • 19
  • 55

1 Answers1

0

according to the docs https://owlcarousel2.github.io/OwlCarousel2/docs/api-options.html animateIn only takes bool or string. no arrays allowed.

you could set a new (random) anmiation after each click.

Philipp Sander
  • 10,139
  • 6
  • 45
  • 78