Motion
TypeIn
Text that assembles itself piece by piece when it comes on screen. The whole sentence is in the DOM from the first render, for crawlers and screen readers.
Preview
Build with entrepta.
Installation
// Resolves dependencies, copies the source, and installs npm packages automatically.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | - | The sentence |
| emphasis | string | - | A substring set in serif italic |
| by | "char" | "word" | "char" | Use word for anything that wraps |
| as | "span" | "h1" | "h2" | "h3" | "p" | "span" | Element |
| delay | number | 0 | Seconds before the first piece |
| speed | number | - | Seconds between pieces |