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
- Host: GitHub
- URL: https://github.com/dmitriyakkerman/simple-slider
- Owner: dmitriyakkerman
- Created: 2018-11-06T13:58:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T12:20:37.000Z (over 5 years ago)
- Last Synced: 2025-02-15T06:16:51.609Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 6.28 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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