Rotates and grows into place while fading in — a playful entrance for badges, icons or callout cards.
Classes
| Class | Plays |
|---|---|
fx-spin-reveal-pl | On page load |
fx-spin-reveal-st | When the element scrolls into view |
fx-spin-reveal | Automatically, when its section scrolls into view |
Options that matter
- Duration —
fx-duration-[n], default1.4seconds. - Delay —
fx-delay-[n], default0. - Ease —
fx-ease-[name], defaultpower3.out. - Start position —
fx-start-[pos], defaulttop 85%(scroll-triggered only).
The rotation angle (-30°) and starting scale (0.9) can only be changed from JavaScript — see JavaScript API.
Example
<span class="badge fx-spin-reveal-pl">New</span>