Bind methods and possibly attach listeners.
Base element of this slider
additional behaviour
Optional
options: boolean | EventListenerOptionsOptional
options: boolean | AddEventListenerOptionsRounding method used to calculate the current slide (e.g. Math.floor, Math.round, Math.ceil, or totally custom.)
Rounding method used to calculate the current slide (e.g. Math.floor, Math.round, Math.ceil, or totally custom.)
factor indicating th current position (e.g "0" for first slide, "2.5" for third slide and a half)
f(x) - integer factor indicating the currently 'active' slide.
factor indicating th current position (e.g "0" for first slide, "2.5" for third slide and a half)
f(x) - integer factor indicating the currently 'active' slide.
Timeout delay in milliseconds used to catch the end of scroll events
Calculated size of a single item
Computes a single number representing the slides widths.
By default, this will use the first slide's offsetWidth
.
Possible values could be an average of all slides, the min or max values, ...
Computes a single number representing the slides widths.
By default, this will use the first slide's offsetWidth
.
Possible values could be an average of all slides, the min or max values, ...
current slider
Optional
entries: ResizeObserverEntry[]resized entries
integer size of a slide in pixels
current slider
resized entries
integer size of a slide in pixels
Active slide
Private
resizeResize observer used to update item size
Private
scrollTimeout ID used to catch the end of scroll events
Private
slideActive slide's scrollLeft in the containing element
Extend the Slider's functionality with Plugins
Plugins to attach
Whether the plugins are enabled right away
Private
onPrivate
onPrivate
dispatchPrivate
onGenerated using TypeDoc
Classdesc
Mostly CSS slider with great performance.