# Light Trace Text

> Outlined lettering with trails of light running round every stroke like a signal tracing a circuit, leaving a soft glow behind.

Category: Text · MotionKit Plus · Updated 2026-11-10 · Live demo: https://www.motionkitui.com/components/light-trace-text

## When to use it

Tech, AI and developer product headlines, hardware and electronics brands, event titles and hero words that should feel switched on.

## How it works

The text is drawn as SVG text three times. The bottom copy is the resting outline and fill. The two above have a dashed stroke, one long dash and a long gap, so only a short trail of each letter's outline shows; animating stroke-dashoffset sends those trails running round every glyph. One of the two is wider and blurred for the glow. After the font loads, the drawing measures the text's bounding box and sizes itself in em, so it matches the type around it. It pauses while off screen.

## Installation

Part of MotionKit Plus (https://www.motionkitui.com/pricing). Subscribers install it with `npx shadcn@latest add @motionkit/light-trace-text` after adding their registry token from https://www.motionkitui.com/account.

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `text` | `string` |  | The word or line. |
| `color` | `string` | `"#9FE7EC"` | Colour of the light. |
| `base` | `string` | `"rgb(246 241 232 / 0.22)"` | Colour of the outlines it runs along. |
| `fill` | `string` | `"rgb(246 241 232 / 0.04)"` | Fill inside the letters. |
| `duration` | `number` | `4` | Seconds for one lap of light. |
| `length` | `number` | `0.18` | Length of each trail, as a share of a lap. |
| `strokeWidth` | `number` | `1.5` | Outline thickness, where the letters are 100 units tall. |
| `as` | `ElementType` | `"span"` | Element to render, e.g. h1. |

## Accessibility

- **Keyboard: Not applicable.** Text, not a control.
- **Screen readers: Pass.** Your text is read once from a visually hidden copy; the drawing is hidden.
- **Reduced motion: Pass.** With reduced motion on, the trails stop and the whole outline glows evenly instead.
- **Colour contrast: Partial.** Outlined letters are thin by nature: the light measures 14:1 on the site's dark, but the resting outline only 1.9:1. Use it at display sizes, or pass a solid fill.
