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
| Option | Type | Default | Description |
|---|---|---|---|
animationDuration | number | 300 | Height transition duration in ms. |