Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/dark-retro-webpage/llms.txt
Use this file to discover all available pages before exploring further.
Marquee renders a horizontal, infinitely looping text ticker — the kind you would have seen at the bottom of a Windows 98 media player or across the top of a retro website. On the Dark Retro Webpage it appears as a decorative accent band, typically displaying status messages, skill lists, or thematic strings like "AVAILABLE FOR WORK ✦ OPEN SOURCE ✦ DARK MODE ONLY". Under the hood it leverages Framer Motion’s motion.div to produce a smooth, GPU-accelerated CSS transform animation with zero JavaScript timer overhead.
Props
The message string that is repeated across the ticker. Four copies are rendered side by side so that the seamless loop is never interrupted — when the animation snaps back to its start position, the user cannot tell.
The Framer Motion
duration (in seconds) for one full animation cycle. Lower values scroll faster; higher values scroll slower. At the default of 20 the ticker takes 20 seconds to travel half its total width, giving a gentle ambient scroll. Drop it to 8–10 for an urgent ticker effect.Extra classes applied to the outer
overflow-hidden container. Use this to control height, text size, text colour, background, padding, or borders.Usage
How the Infinite Scroll Works
The seamless loop is achieved through a combination of DOM duplication and a half-width transform:Four copies are rendered
Four
<span> elements, each containing text, are placed inside a single motion.div with className="flex gap-4 min-w-full". This ensures the total content is always at least twice the viewport width regardless of how short text is.The motion.div animates from 0% to -50%
Framer Motion animates the
x property from "0%" to "-50%". Because four copies fill 200% of the container width, scrolling by -50% lands the ticker at exactly the position where the same sequence starts again.Speed Examples
Related
Win98Window
The bevel-framed window container that Marquee is often placed above or below as an accent strip.
Layout Utilities
CSS tokens and the
.blink animation you can combine with Marquee text for extra retro flair.Typography
Font families — use
.font-display (Press Start 2P) on the Marquee container for maximum retro impact.