Slides in horizontally from the left or right while fading in. The direction is picked by which class you use, not a modifier.
Classes
| Class | Plays |
|---|---|
fx-slide-left-pl / fx-slide-right-pl | On page load |
fx-slide-left-st / fx-slide-right-st | When the element scrolls into view |
fx-slide-left / fx-slide-right | Automatically, when its section scrolls into view |
"Left" and "right" describe the direction the element travels from — fx-slide-left starts off-screen to the left and slides right into place.
Options that matter
- Duration —
fx-duration-[n], default1second. - Delay —
fx-delay-[n], default0. - Ease —
fx-ease-[name], defaultpower3.out. - Start position —
fx-start-[pos], defaulttop 85%(scroll-triggered only).
The slide distance (100px) can only be changed from JavaScript — see JavaScript API.
Example
<div class="fx-slide-left-st">Slides in from the left</div>
<div class="fx-slide-right-st">Slides in from the right</div>