25 lines
687 B
JavaScript
25 lines
687 B
JavaScript
|
|
jQuery(document).ready(function() {
|
|
var owl = jQuery('.owl-carousel');
|
|
owl.owlCarousel({
|
|
items:1,
|
|
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')
|
|
});
|
|
});
|