Responsive Center Merge Auto Width Url Hash Nav Events Stage Padding rtl Lazyload Video Animate Autoplay Auto Height Mousewheel

Url Hash Navigation


zero three five seven ten

Overview

URLhashListener参数用于监听url hash的变化,并查找具有相同data名称(如data-hash="zero")的slide。

startPosition选项接收字符串:'URLHash'。这将使插件在启动时调用相应的项。浏览器的history back按钮同样有效。

Setup

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