Browse components
Moving Lines
Fine diagonal lines drift sideways while bright comets of light race along them. Canvas 2D.
Installation
npx shadcn@latest add @glint-ui/moving-linesFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/moving-lines.json
Usage
import { MovingLines } from "@/components/ui/moving-lines";
<div className="relative h-96">
<MovingLines highlightColor="#67e8f9" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#71717a" | Base line color. |
| highlightColor | string | "#67e8f9" | Color of the traveling highlights. |
| gap | number | 26 | Px between lines. |
| angle | number | 35 | Line angle in degrees. |
| speed | number | 1 | Drift speed multiplier. |
| highlights | number | 2.5 | Highlights launched per second. |
| className | string | — | Extra classes for the root element. |