
container: document.querySelector(‘.No matter if you are a beginner or an advanced user, starting with Owl is easy. Prior to v2.0.2, options “container”, “controlsContainer”, “navContainer” and “autoplayButton” still need to be DOM elements.Į.g. Optional Nonce attribute for inline style tag to allow slider usage without `unsafe-inline Content Security Policy source. Save browser capability variables to localStorage and without detecting them everytime the slider runs if set to true. Indicate whether the slider will be frozen ( controls, nav, autoplay and other functions will stop work) when all slides can be displayed in one page. Make sure you run the inner slider first, otherwise the height of the inner slider container will be wrong. If set to “force”, the slider will always prevent the page scrolling.ĭefine the relationship between nested sliders. If set to “auto”, the slider will first check if the touch direction matches the slider axis, then decide whether prevent the page scrolling or not. Prevent page from scrolling on touchmove. Prevent next transition while slider is transforming. Swipe or drag will not be triggered if the angle is not inside the range when set.

+ width attribute for every image is required for autoWidth slider.Īctivates input detection for touch devices. + data-src attribute with its value of the real image src is required tns-lazy-img need to be set on every image you want to lazyload if option lazyloadSelector is not specified Height of slider container changes according to each slide’s height.ĭefines options for different viewport widths (see Responsive Options).Įnables lazyloading images that are currently not viewed, thus saving bandwidth (see demo). Moves to the opposite edge when reaching the first or last slide. Moves throughout all the slides seamlessly. Time between each gallery animation (in “ms”). Pauses the sliding when the page is invisible and resumes it when the page become visiable again. Output autoplayButton markup when autoplay is true but a customized autoplayButton is not provided. The customized autoplay start/stop button or selector. Text or markup in the autoplay start/stop button. Time between 2 autoplay slides change (in “ms”).ĭirection of slide movement (ascending/descending the slide index). If true, they will always be visible even when more than 1 slides displayed in the viewport.Īllows using arrow keys to switch slides. NavContainer must have at least same number of children as the slides. The container element/selector around the dots. If true, display the nav and add all functionalities. This option will be ignored if controlsContainer is a Node element or a CSS selector.Ĭontrols the display and functionalities of nav components (dots). The container element/selector around the prev/next buttons.ĬontrolsContainer must have at least 2 child elements.

If true, display the controls and add all functionalities.įor better accessibility, when a prev/next button is focused, user will be able to control the slider using left/right arrow keys. Maximum viewport width for fixedWidth/ autoWidth.Ĭontrols the display and functionalities of controls components (prev/next buttons). ViewportMax (was fixedWidthViewportWidth) If true, the width of each slide will be its natural width as a inline-block box. If slides less or equal than items, the slider won’t be initialized. Number of slides being displayed in the viewport. With carousel everything slides to the side, while gallery uses fade animations and changes all slides at once. The slider container element or selector.
#Owl carousel 1.3.2 options install#


Warning: tiny-slider works with static content and it works in the browser only. Tiny slider for all purposes, inspired by Owl Carousel.
