Skip to content

Releases: ruyadorno/simple-slider

v1.0.0

11 Apr 13:32
Compare
Choose a tag to compare

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 into paused
  • No more access to internal properties
  • actualIndex is now a currentIndex() method
  • Container is now set via a container property of options, init function only takes one parameter now
  • Default values uses now % values instead of px
  • 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 a v0.x.x-legacy branch that allows to keep supporting v0

v0.6.3

01 Jul 03:10
Compare
Choose a tag to compare

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

v0.6.2

01 Jul 02:04
Compare
Choose a tag to compare
  • Updated grunt dependencies
  • Small README chores:
    • Added "Install" section
    • Added version badge
    • Added size badge

v0.6.0

01 May 16:54
Compare
Choose a tag to compare
  • Added onChangeEnd callback

v0.5.0

30 Jan 22:31
Compare
Choose a tag to compare
  • Added onChange callback function (thanks @joonxz for the PR)

v0.4.0

28 Nov 02:12
Compare
Choose a tag to compare
  • Added methods to play/pause slideshow
  • Added support to visibilitychange api

v0.3.0

16 Apr 14:54
Compare
Choose a tag to compare

Many thanks to @mozmorris for providing the PRs for this release

  • Fixed problem on prevIndex() method where it would always skip first item index
  • Fixed integration between autoPlay and change() method, #17

v0.2.0

14 Mar 01:14
Compare
Choose a tag to compare
  • 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

06 Mar 03:36
Compare
Choose a tag to compare

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 into transitionDuration
  • Added more examples!