Splits text into characters and reveals them one at a time, like they're being typed.
Classes
| Class | Plays |
|---|---|
fx-type-writer-pl | On page load |
fx-type-writer-st | When the element scrolls into view |
fx-type-writer | Automatically, when its section scrolls into view |
Options that matter
- Duration —
fx-duration-[n], default0.05seconds per character (this is short on purpose — it's how fast each character appears, not the whole animation). - Delay —
fx-delay-[n], default0. - Stagger —
fx-stagger-[n], default0.03seconds between characters — this is what actually controls the typing speed. - Ease —
fx-ease-[name], defaultnone(linear). - Start position —
fx-start-[pos], defaulttop 85%(scroll-triggered only).
Long paragraphs mean a lot of characters — check the total time (roughly character count × stagger) doesn't drag on too long.
Example
<h2 class="fx-type-writer-pl fx-stagger-[0.02]">Typed one letter at a time</h2>