Releases: ruyadorno/simple-slider
Releases · ruyadorno/simple-slider
v1.0.0
First Major Release
Breaking changes
- Initialization method is now a function instead of a constructor
- e.g.
new SimpleSlider()
->simpleslider.getSlider()
- Renamed option properties
transitionDuration
->duration
transitionProperty
->prop
transitionDelay
->delay
startValue
->init
visibleValue
->show
endValue
->end
autoPlay
-> reversed value intopaused
- No more access to internal properties
actualIndex
is now acurrentIndex()
method- Container is now set via a
container
property of options, init function only takes one parameter now - Default values uses now
%
values instead ofpx
unit
is now a option property instead of being figured out from other values
Improvements
- Dropped OOP approach in favor of a more functional programming oriented
- Distribution file is now less than half the size from
v0.6.x
sitting at 1.13kb minified/gzipped - Each slider only uses a single animation loop for both inserting and removing slides
Additions
- Added a
reverse()
method that change the order of sliding elements and the direction of animation - Added a
children
option that allows to select which children of the container element should be used as slides - Added a way of running initialization func with no options, hooking the container to an element in the dom using
data-simple-slider
data attribute - Added saucelabs browser functional tests for future PRs
Fixes
- visibility change event listener is now cleared on
dispose()
New infrastructure
- Source code in ES2015+ compiled using babel
- Unit tests now uses webpack + jest
- Functional tests run on zuul + jasmine that allow us to run functional tests on multiple browsers in saucelabs
- Dropped
develop
branch, now there's av0.x.x-legacy
branch that allows to keep supportingv0
v0.6.3
v0.6.2
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.0
- Changed default transition to left-to-right sliding
- Added support to easing functions
- Added prev/next methods
- Basic styling is now defined by the script
- z-index organization of elements is also handled by the script
- Website updated
v0.1.0
First official release!
This may be considered the first official release of SimpleSlider, with consistent unit tests and use of best practices, you can check below the improvements:
- The animation script now uses requireAnimationFrame() API for animations
- Added integration with travis-ci
- Totally refactored animation function
- Added a
visibleValue
property to better control animations - Much much better unit tests
- Renamed
transitionTime
property intotransitionDuration
- Added more examples!