An open API service indexing awesome lists of open source software.

https://github.com/dmitriyakkerman/simple-slider

Simple slider with manual/autoplay functionality
https://github.com/dmitriyakkerman/simple-slider

Last synced: 3 months ago
JSON representation

Simple slider with manual/autoplay functionality

Awesome Lists containing this project

README

          

1.Markup. Create the root element with any selector, put inside it your images:







2. Add main styles im HEAD tag:

3. Add main Javascript code in the end of BODY tag:



4.Initialization. Init slider by specifying the root selector inside slider app generation.

document.addEventListener('DOMContentLoaded', function() {
new SimpleSlider({
el: document.querySelector('.my-slider')
});
})

5. Options:


autoplay: false/true,
autoplayDelay: 2500