Skip to content

Utility Classes

Overview

Sliflow is designed with simplicity and widespread use cases in mind. That's why it includes several utility classes designed to offer common functionality.

Images

One typical use case involves sliders displaying images as slide content. These images normally completely fill the slider's window. To ensure this, developers can apply the sliflow-utility-cover class to each img element directly enclosed within a Slide HTML element.

Example:

html

<div class="sliflow">
    <div class="sliflow-projector">
        <div class="sliflow-slide">
            <!-- Insert the URL for an image -->
            <img src="" class="sliflow-utility-cover">
        </div>
        <!-- Repeat the previous block for additional slides -->
    </div>
</div>

Slide Transitions

Classes

ClassDurationEasing
sliflow-utility-transition250mslinear
sliflow-utility-transition-500500ms-
sliflow-utility-transition-10001000ms-
sliflow-utility-transition-20002000ms-
sliflow-utility-transition-linear-linear
sliflow-utility-transition-ease-in-out-ease-in-out

How to apply

html

<div class="sliflow sliflow-utility-transition sliflow-utility-transition-1000">
    <div class="sliflow-projector">
        <!-- Insert slides here. -->
        <!-- Transitions between slides will occur smoothly using a linear, one-second effect -->
    </div>
</div>

WARNING

The sliflow-utility-transition class must be present for the remaining transition utility classes to take effect.

INFO

Visit the Effects & Transitions section to learn more.