Supports IE10+. Pure JavaScript. Non-jQuery-dependent. CSS3 transition.
.slider
<!-- repeat below for more slides-->
.slide
img(src="your-image-here")
<!-- you can also have more <div/>s or <p/>s here for text-->
<!-- repeat above for more slides-->
.dots-wrapper(id="dots-wrapper-4")
var test_slider = new fifi_slider({ target: document.querySelector('.slider'), dotsWrapper: document.querySelector('.dots-wrapper'), arrowLeft: document.querySelector('.arrowLeft'), // build your own arrow and pass it in, the plugin will attach a click eventlistener arrowRight: '', // leave it as '' if you don't need arrows autoplay: { // autoplay function not built yet*** on: false, interval: 1000 // in ms }, transition: { speed: 300, // in ms easing: '' // CSS3 easing as 'linear' in transition: all 0.6s linear; }, swipe: true, autoHeight: true, startSlide: 0, // from 0, afterChangeSlide: function afterChangeSlide() {} // customized callback after changing the slide });