How Swiffy Slider markup and configuration work
mainSwiffy Slider is a CSS-driven slider where all behavior and layout options are controlled by adding CSS classes to the wrapper element. It does not require JavaScript configuration for standard usage.
Markup Structure
A slider instance consists of a .swiffy-slider wrapper containing three optional sections:
.slider-container: The scrollable container holding the slides..slider-nav: Navigation buttons (previous and next). There should be exactly two..slider-indicators: A container for indicator buttons (one per slide or per page).
Basic Example
<div class="swiffy-slider [slider options] [navigation options] [indicator options]" data-slider-nav-autoplay-interval="3000">
<ul class="slider-container">
<li>Slide 1</li>
<li>Slide 2</li>
</ul>
<button type="button" class="slider-nav"></button>
<button type="button" class="slider-nav slider-nav-next"></button>
<div class="slider-indicators">
<button class="active"></button>
<button></button>
</div>
</div>