Put the heading in the Content part and the Canvas after it.
motion-heading.tsx
TextEchoTrail
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | A string, or the parts TextEchoTrailContent and TextEchoTrailCanvas. |
| trigger | "loop""scroll" | "scroll" | What wakes it: scroll (default) a scroll of the page or of a box around it; loop a read in every frame while it shows, for a text that a host moves with a transform (a slide, a drag). |
| reach | number | 1 | The longest trail, in em of the text. Default 1. The canvas reaches this far around it. |
| locale | string | — | The BCP 47 locale of the text, for the case of text-transform on the canvas. Default: the DisplayLocaleProvider locale, else "en-US". |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextEchoTrailContent
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextEchoTrailCanvas
<canvas>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <canvas> attributes | — | Every other attribute goes to the <canvas>, with a ref. |







