View result : https://nada-tb.github.io/slider-vanillaJS/
- A toolbar: play, stop, backward, next, random.
- A button to display ou hide the toolbar.
- Create a javascript function for each button of the toolbar that matches its role on click.
- Declare a global variable that updates the slider show status (on/off).
- Declare a global variable that updates the image position index.
javascript |
---|
Scope |
DOM document |
DOM methods |
Timing event |
array |
Loop while |
condition(if/else) |
Events |