Ad

Owl-carousel Offset At Begin

- 1 answer

I am using the owlCarousel plugin and I want it to have an offset at the beginning and then go normal as the carousel is going over it.

An example of this is Kaw

This is my configuration for the carousel:

$(".owl-carousel.carousel-autoplay").owlCarousel({
    items: 4,
    autoPlay: 5000,
    pagination: false, 
    navigation: true,
    navigationText: false,
});
Ad

Answer

I think what you are looking for is stagePadding

stagePadding: Number

Usage

$(".owl-carousel.carousel-autoplay").owlCarousel({
    items: 4,
    autoPlay: 5000,
    pagination: false, 
    navigation: true,
    navigationText: false,
    stagePadding: 10 //padding in pixels
});
Ad
source: stackoverflow.com
Ad