Overview
Layout options control the fundamental structure and appearance of your slider, including mode, axis, dimensions, and spacing.Options
Controls animation behaviour.With
carousel everything slides to the side, while gallery uses fade animations and changes all slides at once.The axis of the slider.
In gallery mode, axis is always horizontal.
Number of slides being displayed in the viewport.If slides less or equal than
items, the slider won’t be initialized.Space between slides (in “px”).
Space on the outside (in “px”).
Not available in gallery mode.
Controls
width attribute of the slides.If
true, the width of each slide will be its natural width as an inline-block box.When using
autoWidth with lazyload, the width attribute is required for every image.Maximum viewport width for
fixedWidth/autoWidth.Previously called fixedWidthViewportWidth.Number of slides going on one “click”.
In gallery mode, slideBy is always ‘page’.
Center the active slide in the viewport.Available since v2.9.2.
Only works in carousel mode with horizontal axis.
Height of slider container changes according to each slide’s height.
You can manually adjust slider height using the
updateSliderHeight() method when autoHeight is true.Responsive Configuration
All layout options exceptmode and axis can be adjusted at different breakpoints: