autoHeight

Animates the slider wrapper height to match the active slide on each navigation. Perfect for slides with variable content height.

Import

import { autoHeight } from '@andresclua/sliderkit-plugins'

Usage

new Slider('#el', {
  plugins: [autoHeight({ animationDuration: 300 })],
})

Options

OptionTypeDefaultDescription
animationDurationnumber300Height transition duration in ms.

Demo

View auto height demo →