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

OptionTypeDefaultDescription
paddingnumber60Visible width of prev/next slides in px.