Url Hash Navigation


zero three five seven ten

Overview

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 corresponding items on startup. Browser history back button is also affected.

Setup

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