Skip to content

State Updates

Overview

Sliflow updates a Slide element with different classes to signal different states or when various events take place. For example, the Slide element that holds the current slide is marked with the sliflow-current class. These classes allow developers to program against them, such as making use of various CSS driven operations.

Sliflow applies different classes to its HTML elements to denote various states or events. For instance, the Slide element that contains the current slide is tagged with the sliflow-current class. These classes enable developers to carry out operations against them, such as various CSS-driven actions.

An list of all supported state classes is provided below:

ClassApplicationDescription
sliflow-readySlider elementApplied when Sliflow has loaded for a specific HTML block.
sliflow-transitioningSlider elementApplied while a slide transition is in progress, even if not actually resulting in a different slide than the current one.
sliflow-swipingSlider elementApplied while a swiping gesture is in progress, even if it doesn't result in a different part of the Strip becoming visible..
sliflow-startSlider elementWhen the current slide is the first in the list of active slides.
sliflow-endSlider elementWhen the current slide is the last in the list of active slides.
sliflow-firstSlide or indicator elementApplied to the first active slide and its corresponding indicators.
sliflow-lastSlide or indicator elementApplied to the last active slide and its corresponding indicators.
sliflow-currentSlide or indicator elementApplied to the current slide and its corresponding indicators.
sliflow-current-pNSlide or indicator elementApplied to an active slide (and its corresponding indicators) positioned N places before the current slide.
sliflow-current-nNSlide or indicator elementApplied to an active slide (and its corresponding indicators) positioned N places after the current slide.