Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/retrowin/llms.txt
Use this file to discover all available pages before exploring further.
Marquee brings back one of the most beloved (and mocked) HTML elements of the late 1990s. It renders a full-width black banner with green VT323-font text that scrolls continuously from right to left — evoking the amber-on-black aesthetic of DOS terminals and early web pages. The text is duplicated inline with a gap of spaces to create a seamless infinite loop. The component is styled with a Windows 98 inset border, making it an ideal footer or section divider inside a RetroWindow.
Props
The string to scroll across the banner. The text is rendered twice in sequence (separated by eight spaces) so the loop appears seamless — the second copy scrolls into view exactly as the first copy exits.
Usage
Behavior
Looping
The component renders a singleinline-block div containing the text prop, eight non-breaking spaces ( ), and the text prop again:
.animate-marquee CSS class drives a translateX keyframe that moves the element exactly one copy-width to the left over 10 seconds, at which point the animation loops. Because both copies are identical and spaced identically, the transition between repetitions is invisible.
Styling
| Property | Value |
|---|---|
| Background | Black |
| Text colour | Green (text-green-400) |
| Font | VT323 (font-vt323), text-xl |
| Border | win98-inset, 2 px border-win-gray |
| Animation | .animate-marquee — 10 s linear infinite |
The
.animate-marquee keyframe must be defined in your global CSS or Tailwind config. The component applies the class name but does not embed the @keyframes definition.