Play Stop

Descripton

Example of custom event triggerd by buttons for play and stop. 'owl.play' event has two properties: autoplayTimeout and autplaySpeed.
owl.play event notation is owl.trigger('owl.play',[ autoplayTimeout, autoplaySpeed ])


//Javascript

var owl = $('.owl-carousel'); // save reference to variable

owl.owlCarousel({
	items:4,
	loop:true,
	margin:10,
	//autoplay:true,
	//autoplayTimeout:1000,
	autoplayHoverPause:true
});

$('.play').on('click',function(){
	owl.trigger('play.owl',1000)
})

$('.stop').on('click',function(){
	owl.trigger('stop.owl')
})