Simple Slider Versions Save

:carousel_horse: The 1kb JavaScript Carousel

v1.0.0

7 years ago

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

7 years ago

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

7 years ago
  • Updated grunt dependencies
  • Small README chores:
    • Added "Install" section
    • Added version badge
    • Added size badge

v0.6.0

8 years ago
  • Added onChangeEnd callback

v0.5.0

9 years ago
  • Added onChange callback function (thanks @joonxz for the PR)

v0.4.0

9 years ago
  • Added methods to play/pause slideshow
  • Added support to visibilitychange api

v0.3.0

10 years ago

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

10 years ago
  • 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

10 years ago

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!