Sliders are navigational components which can be used in conjunction with the band switcher layout to create a carousel effect on your page.
Sliders have 3 navigation styles to choose from (they can also be used together):
[data-nav-style="arrows"]
Arrows[data-nav-style="text"]
Clickable boxes with descriptive text[data-nav-style="circles"]
Clickable circles with or without text
- This attribute connects the navigational elements to the corresponding content that it toggles between.
- Any string can go in here as long as it does not contain spaces or periods.
- This appears on the
.slider-nav
and the.switcher-body
elements and must be identical or the content change will not trigger.
- This attribute can be either true or false; it indicates which navigational element is styled in the active state (i.e., filled in circle or if a directional arrow is visible).
- Only one navigational element should be set to active in the set.
- This determines which content item this navigational element will slide to, updated by JS after a selection is made
- Specific to arrows, this determines which direction through the content we are navigating.
- Valid values are
prev
andnext