25 lines
721 B
JavaScript
25 lines
721 B
JavaScript
|
|
||
|
jQuery(document).ready(function() {
|
||
|
var owl = jQuery('.owl-carousel');
|
||
|
owl.owlCarousel({
|
||
|
items:(understrap_slider_variables.items),
|
||
|
loop:true,
|
||
|
autoplay:true,
|
||
|
autoplayTimeout:(understrap_slider_variables.timeout),
|
||
|
animateOut: 'fadeOut',
|
||
|
animateIn: 'fadeIn',
|
||
|
nav: false,
|
||
|
dots: true,
|
||
|
autoplayHoverPause:true,
|
||
|
margin:0,
|
||
|
autoHeight:true
|
||
|
});
|
||
|
|
||
|
jQuery('.play').on('click',function(){
|
||
|
owl.trigger('autoplay.play.owl',[1000])
|
||
|
});
|
||
|
jQuery('.stop').on('click',function(){
|
||
|
owl.trigger('autoplay.stop.owl')
|
||
|
});
|
||
|
});
|