A heading drawn as an outline that floods with solid colour from left to right, on hover or as it scrolls into view.
Outlined lettering with trails of light running round every stroke like a signal tracing a circuit, leaving a soft glow behind.
Customize
Usage
import { LightTraceText } from "@/components/motionkit/light-trace-text";
<LightTraceText
as="h1"
text="SIGNAL"
className="text-8xl font-bold tracking-tight"
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Light runs round
Runs on its own
Tech, AI and developer product headlines, hardware and electronics brands, event titles and hero words that should feel switched on.
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.
| 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. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Only the motion package, beside React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/light-trace-text. It saves the file to components/motionkit and installs its dependencies.
Light Trace Text is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, the trails stop and the whole outline glows evenly instead.
A heading drawn as an outline that floods with solid colour from left to right, on hover or as it scrolls into view.
Crisp letters lit from behind by a soft, slowly flowing glow of colour, the way a new AI feature or a launch headline glows.
Rotates through a list of words, letters rising in and drifting out.
SIGNAL
The live preview is free to explore. Plus unlocks the source for Light Trace Text and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { LightTraceText } from "@/components/motionkit/light-trace-text";
<LightTraceText
as="h1"
text="SIGNAL"
className="text-8xl font-bold tracking-tight"
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Light runs round
Runs on its own
SIGNAL