LED Marquee
Words and logos run across like a station board: a proper 5 by 7 LED font, lit dots with a little bloom over a faint grain of unlit ones, the text stepping a whole LED at a time. Hover slows it so you can read; drag it and it slides on before settling back.
Needs: None. A 2D canvas. Logos as images need to be same-origin or CORS-enabled to be turned into dots.
Customize
direction
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | (string | { image: string; label?: string })[] | required | What runs across the sign: words, or logos as images (drawn as their silhouette). |
| separator | string | "·" | Set between items. |
| tone | string | "#ff9f2e" | The colour of a lit LED. |
| speed | number | 14 | LEDs per second the text moves. |
| pitch | number | 6 | Size of one LED in px, dot plus gap. The sign is ten of these tall. |
| direction | "left" | "right" | "left" | Which way the text runs. |
| glow | boolean | true | A soft bloom round lit LEDs. |
| interactive | boolean | true | Hover slows it to read; drag it and it slides on before settling back. |
| className | string | – | Class on the root, which fills its parent's width. |
| style | CSSProperties | – | Style on the root. Theme it through the --mlui-* variables. |