@dioramajs/text/assemble
Exports of @dioramajs/text/assemble.
On this page
import { default, FADE, JITTER } from '@dioramajs/text/assemble'Functions
span | Seconds from the trigger until the text has landed, and with `crisp` until the glyphs show. |
starts | Where each particle starts in 3D, as an offset from its place: in a cloud around and behind the text, rising from below, out of a point deep behind its middle, or from both sides. Paths bend by a smooth field, so particles that land close stream alike. `depth` is the camera distance. |
Constants
default | Thousands of particles fly out of the depth around the page along curved paths, with real perspective and focus, and settle into the shape of the text; the crisp text fades in over them as each letter lands. Once on view, scrubbed by scroll, or as a heading of beads the pointer lifts towards the viewer. At rest the element is plain DOM text, except with the hover trigger. |
FADE | Seconds the crisp glyphs take to fade in over the landed particles of a letter. |
JITTER | Share of `duration` a particle may start after the first of its letter. |
MAX_POINTS | Most particles at the high tier. |
Interfaces
Starts | Where the particles start and how they turn on the way. |