Siema Versions Save

Siema - Lightweight and simple carousel in pure JavaScript

v.1.3.0

7 years ago
  • onInit callback added to options
  • onChange callback added to options

Example:

function onInitCallback() {
  console.log('Siema initialised bro :)');
}

function onChangeCallback() {
  console.log('Slide changed bro :)');
}

const mySiema = new Siema({
  onInit: onInitCallback,
  onChange: onChangeCallback,
});

Thanks to: @hsnaydd

v.1.2.0

7 years ago

Changelog

  • Modern ECMAScript 2015 class notation
  • Add webpack as a build tool
  • UMD (Universal Module Definition) pattern
  • Docs moved to separated directory
  • prev() and next() method can take an optional argument
const mySiema = new Siema();

buttonPrev.addEventListener('click', () => mySiema.prev(2));
buttonNext.addEventListener('click', () => mySiema.next(2));
  • UpdateAfterDrag can swipe multiple items - fixes issue 28
  • Wrap each slide in separated div improves styling encapsulation
  • Documentation simplified
  • Add to docs links to Angular, React and Vue implementations

v.1.1.0

7 years ago
  • Add destroy() method
  • Docs clean up

v.1.0.0

7 years ago