textReveal function
Hidden until drawn when in view at mount, so a heading on the first screen plays too.
import { textReveal } from '@dioramajs/text/intro'A scrubbed one has nothing to play before a scroll.
function textReveal(element: Element): booleanParameters
| Name | Type | Description |
|---|---|---|
element | Element |
Defined in packages/text/src/intro.ts.