@atomico/keen-slider

The Keen-slider api but with WebComponents

Webcomponent built with Atomico JS to use keen-slider as webcomponent. Includes additional support for React and Preact.

Modules

import { KeenSlider } from "@atomico/keen-slider";

Properties / attributes

most of the properties are homologous to keen-slider documentation

The slidesPerView, slidesSpacing and slidesOrigin props accept responsive expressions, example:

<atomico-keen-slider 
    slider-per-view="1, 2 520px, 3 720px"
></atomico-keen-slider>

Events

CreateSlider

dispatched when defining the slider prop, useful for accessing the keen-slider instance

Methods

KeenSlider.next()

next slide

KeenSlider.prev()

prev slide

Examples

React

Last updated