centerMode
Centers the active slide in the container, with partial prev/next slides peeking on both sides.
Import
import { centerMode } from '@andresclua/sliderkit-plugins' Usage
new Slider('#el', {
slidesPerPage: 1,
plugins: [centerMode({ padding: 60 })],
}) Options
| Option | Type | Default | Description |
|---|---|---|---|
padding | number | 60 | Visible width of prev/next slides in px. |