此页面为源码效果演示页面

点我返回此源码目录,找同款源码

该演示页暂未关联单独源码文章,先到分类目录里找

Hash position.


zero three five seven ten

Descripton

URLhashListener option is listening for url hash change and is looking for slide with the same data name e.g. data-hash="zero"

Also startPosition option accept string: 'URLHash'. This will load coresponding item on startup. Browser history back button is also affected.


//Javascript

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

owl.owlCarousel({
	items:4,
	loop:true,
	center:true,
	margin:10,
	URLhashListener:true,
	startPosition: 'URLHash'
});