Slider Autoplay (owl.carousel.js)

Autoplay plugin has three options:

1. autoplay

Type: Boolean
Default: false

Autoplay.

2.autoplayTimeout

Type: Number
Default: 5000

Autoplay interval timeout.

3. autoplayHoverPause

Type: Boolean
Default: false

Pause on mouse hover.

Example

var owl = $('.owl-carousel');
owl.owlCarousel({
    items:4,
    loop:true,
    margin:10,
    autoplay:true,
    autoplayTimeout:1000,
    autoplayHoverPause:true
});
$('.play').on('click',function(){
    owl.trigger('play.owl.autoplay',[1000])
})
$('.stop').on('click',function(){
    owl.trigger('stop.owl.autoplay')
})

Leave a comment

Your email address will not be published. Required fields are marked *