Wrap a statement between two sections. Put a line break between the lines.
The sample also uses Button. One command adds them with this item:
speed-section.tsx
TextPerspective
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| locale | string | — | The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US". |
| children | string | — | The text. With by line, a line break (\n) starts a new line. |
| by | "line""word" | "line" | The pieces that stand at different depths: line (default) or word. |
| driver | "pointer""scroll""still" | "scroll" | What turns the plane: scroll (default) the scroll place of the text, pointer the mouse on the text, still nothing (a fixed pose). |
| angle | number | 20 | The largest turn of the plane in degrees. Default 20. |
| depth | number | 0.6 | The depth step from one piece to the next, in em of the text. Default 0.6. |
| perspective | number | 900 | The 3D view distance in px. Smaller is stronger. Default 900. |
| settle | boolean | true | With driver scroll: the pieces come together into a flat text at the middle of the scroll range, and spread in depth before and after it. Default true. Off, they keep their depth. |
| offset | ParallaxOffset | PARALLAX_FULL_PASS | With driver scroll: the scroll range, in Motion's offset words. Default ["start end", "end start"]: from the moment the text enters at the bottom to the moment it leaves at the top. The text is flat at the middle. |
| container | RefObject<HTMLElement | null> | — | With driver scroll: the scroll box, when the text scrolls inside one. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
| Tab | With driver="pointer": while keyboard focus is on the link or button around the text, the plane turns as the mouse at the right edge would turn it. |
|---|







