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')
})

	
下载代码说明
X关闭

适应pc客户端、ipad、手机等多种终端浏览器的图

多种版本的,适合目前主流中端的jquery图片滚动插件,适合中端包括 pc客户端、pad客户端以及手机客户端三种。