OptionaladdOptionaladdIncreases amount of pre-rendered slides before active slide
OptionalcacheEnables DOM cache of rendering slides html elements. Once they are rendered they will be saved to cache and reused from it.
OptionalenabledWhether the virtual slides are enabled
OptionalrenderFunction for external rendering (e.g. using some other library to handle DOM manipulations and state like React.js or Vue.js). As an argument it accepts data object with the following properties:
offset - slides left/top offset in pxfrom - index of first slide required to be renderedto - index of last slide required to be renderedslides - array with slide items to be renderedOptionalrenderWhen enabled (by default) it will update Swiper layout right after renderExternal called. Useful to disable and update swiper manually when used with render libraries that renders asynchronously
OptionalrenderFunction to render slide. As an argument it accepts current slide item for slides array and index number of the current slide. Function must return an outer HTML of the swiper slide or slide HTML element.
OptionalslidesArray with slides
OptionalslidesSlide size for slidesPerView: auto (in px)
Increases amount of pre-rendered slides after active slide