TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/digital-domain/llms.txt
Use this file to discover all available pages before exploring further.
Marquee component is a modern, animation-safe replacement for the old HTML <marquee> tag. It uses Framer Motion to animate a single text node from x: "100%" to x: "-100%" in an infinite loop, producing a smooth left-scrolling ticker. The component renders a clipping div with overflow-hidden around the animated text, so content never bleeds outside its container.
Import
Props
The text content to scroll across the banner. Wrap the string in
*** separators or other ASCII decorations to achieve the classic ticker style — the text loops continuously so visible seams are expected.Duration in seconds for one full pass of the text across the container. Higher values produce slower scrolling; lower values produce faster scrolling. This maps directly to Framer Motion’s
transition.duration. Defaults to 20 (the component source default).The home page marquee uses
speed={15} for a brisk welcome banner. The Winamp track-title ticker uses speed={8} for a faster DJ-style scroll. Tune this value relative to the length of your text string — longer strings benefit from a higher speed value to keep the scroll pace feeling consistent.Extra Tailwind utility classes merged into the outer container
div — the same element that carries the fixed overflow-hidden whitespace-nowrap flex items-center classes. Use this to control the font family, size, colour, width, and letter-spacing of the scrolling text. Because className targets the wrapper rather than the inner animated element, width constraints (e.g. w-32) and flex alignment are also set here.