:carousel_horse: The 1kb JavaScript Carousel
new SimpleSlider()
-> simpleslider.getSlider()
transitionDuration
-> duration
transitionProperty
-> prop
transitionDelay
-> delay
startValue
-> init
visibleValue
-> show
endValue
-> end
autoPlay
-> reversed value into paused
actualIndex
is now a currentIndex()
methodcontainer
property of options, init function only takes one parameter now%
values instead of px
unit
is now a option property instead of being figured out from other valuesv0.6.x
sitting at 1.13kb minified/gzippedreverse()
method that change the order of sliding elements and the direction of animationchildren
option that allows to select which children of the container element should be used as slidesdata-simple-slider
data attributedispose()
develop
branch, now there's a v0.x.x-legacy
branch that allows to keep supporting v0
Bower package renamed to simple-slider
- calls to bower install SimpleSlider
will still work as before, it only changes that the recommended way to install using Bower is now:
bower install simple-slider
onChangeEnd
callbackonChange
callback function (thanks @joonxz for the PR)play
/pause
slideshowvisibilitychange
apiMany thanks to @MozMorris for providing the PRs for this release
prevIndex()
method where it would always skip first item indexautoPlay
and change()
method, #17This may be considered the first official release of SimpleSlider, with consistent unit tests and use of best practices, you can check below the improvements:
visibleValue
property to better control animationstransitionTime
property into transitionDuration