Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/retro-cosmic-arcade/llms.txt
Use this file to discover all available pages before exploring further.
MarqueeTicker is a pure CSS scrolling text banner that continuously animates a line of text from the right edge of the screen to the left, looping infinitely. It evokes the classic <marquee> HTML element — but implemented with a Tailwind animate-marquee CSS animation instead, giving you full control over timing and style. The component is perfect for scrolling announcements, page taglines, or easter-egg messages at the top or bottom of a page.
Props
The string to scroll across the banner. The value is rendered as a single
whitespace-nowrap line, so no matter how long the string is it will never wrap onto a second line. Use Unicode characters such as ★, ▶, or ✦ as visual separators between phrases.Usage
Basic announcement
Dynamic text from state or props
How it works
The outer<div> sets overflow-hidden and w-full so the text is clipped at the container boundaries. The inner <div> carries the animate-marquee class which applies a CSS animation defined in tailwind.config.js (or a global CSS file):
| CSS property | Value |
|---|---|
| Animation name | marquee |
| Duration | 25s |
| Timing function | linear |
| Iteration count | infinite |
| Starting position | translateX(100%) |
| Ending position | translateX(-100%) |
Styling notes
| Token / Class | Effect |
|---|---|
font-vt323 | Pixel-style VT323 monospace typeface |
text-xl | Font size 1.25rem |
text-y2k-lime | Bright lime green text (#adff2f) |
bg-y2k-panel | Dark panel background color |
border-y-2 | 2px top and bottom borders only |
border-y2k-magenta | Hot magenta border color (#ff4ad8) |
py-1 | Vertical padding to give the text breathing room |
The
animate-marquee class must be registered in your Tailwind config’s theme.extend.animation and theme.extend.keyframes blocks, or in a global CSS file. It is not a built-in Tailwind utility.