0.4.9 • Published 1 year ago
@sartek/slider v0.4.9
Simple slider
<Slider settings={...} classes={...}>{children}</Slider>
Settings and classes optional, children required.
Currently accepted settings (object):
itemsAmount - items per row,
rowsAmount - number of rows,
animationSpeed - speed of all animations in milliseconds,
swipeSensitivity - length slide must be moved to swipe in px,
isArrows,
arrowSize,
arrowLeftIcon - left arrow component,
arrowRightIcon - right arrow component,
infinite,
isDots,
shrinkDots,
isAuto - auto slides change right, dont work when infinite: false,
autoplayDelay - delay in ms between slides autochange
Currently accepted classes (object):
root - most outer container class, including slider, arrows and dots,
slider - slider class,
dots - dots class,
dot - dot class,
activeDot - active dot class,
arrowLeft - left arrow class,
arrowRight - right arrow class