D
D
Dmitry Sch2018-06-27 11:06:37
Owl Carousel
Dmitry Sch, 2018-06-27 11:06:37

Owl carousel 2 separate animation on prev/next buttons?

Good afternoon everyone.
How to make different animations for the prev / next buttons
Now the animations are the same, because the plugin is initialized simply as

$('.owl-carousel').owlCarousel({
    animateOut: 'fadeOutLeft',
    animateIn: 'fadeInRight'
})

And it is necessary that when clicking on next it was
animateOut: 'fadeOutLeft',
 animateIn: 'fadeInRight'

on prev
animateOut: 'fadeOutRight',
    animateIn: 'fadeInLeft'

Who faced such task?
Example on CodePen

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question