Requirement
Start
- HTML
- JS
...
...
const slider = document.querySelector("#...");
console.log(slider.iteranor);
// return current iteranor
console.log(slider.size);
// return 4
console.log(slider.interval);
// return 5000
console.log(slider.autoplay);
// return 1
/* Methodes */
slider.play();
slider.pause();
slider.forward();
slider.backward();
slider.setIterator(i);
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,Remote:
- Default
- Custom
- :root
-
:root { --zb-slider-remote-background: rgba(90,90,90,0.9); --zb-slider-remote-color: #fff; --zb-slider-bullets-background: #fff; --zb-slider-bullets-color: rgba(90,90,90,0.9); }
...
...
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
...
...
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,:root { --zb-slider-remote-background: orange; --zb-slider-remote-color: white; --zb-slider-bullets-background: red; --zb-slider-bullets-color: white; }
...
...
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,Attributes
[zb-interval]
...
...
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,[zb-off]
...
...
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,[zb-gallery]
Class
Transition:
- Fade
- Up & Down
...
...
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,Alignement:
- Default
- Top
- Bottom
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias laboriosam, obcaecati laudantium provident,