progressBar

A thin bar that fills proportionally as you advance through slides. Distinct from the pagination progress type — this renders an absolute-position bar at the top or bottom.

Import

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

Usage

new Slider('#el', {
  loop: false,
  plugins: [progressBar()],
})

Options

OptionTypeDefaultDescription
elstring | HTMLElementTarget container. Auto-created after slider if omitted.

CSS classes

ClassElement
.c--slider-a__progressTrack bar container
.c--slider-a__progress-fillFill element (width animated)

Demo

View progress bar demo →