BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/loomui/marquee

Marquee

loomui/marquee
FreeComponent

A seamless scrolling row or column, in either direction, that pauses on hover.

Live preview

live · rendered by the registry
Rendered by loomui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://loomui.design/r/marquee.json

Source

registry/loomui/marquee.tsxloomui.design/r/marquee.json
1"use client"
2
3import * as React from "react"
4
5import { cn } from "@/lib/utils"
6import { useInViewport } from "@/registry/lib/use-in-viewport"
7
8export interface MarqueeProps extends React.ComponentProps<"div"> {
9 /** Travel bottom to top instead of right to left. */
10 vertical?: boolean
11 /** Flip the direction of travel. */
12 reverse?: boolean
13 /** Stop while the pointer is over the track. */
14 pauseOnHover?: boolean
15 /** Copies of the children. Two is the minimum for a seamless loop. */
16 repeat?: number
17 /** Seconds for one full pass of a single copy. */
18 duration?: number
19 /** Gap between items, as a CSS length. */
20 gap?: string
21 /** Render the row static. */
22 paused?: boolean
23 /** Fade both edges out. Pass a CSS length to size the fade. */
24 fade?: boolean | string
25}
26
27/**
28 * Alpha sampled off a smoothstep curve. A two-stop gradient ramps linearly, and
29 * the eye reads where that ramp meets full opacity as a hard line. Sampling the
30 * curve rounds both ends off, so the fade runs out instead of stopping.
31 */
32const FADE_STOPS = [0, 0.0608, 0.216, 0.5, 0.784, 0.939, 1]
33
34function fadeMask(axis: "to right" | "to bottom", size: string) {
35 const last = FADE_STOPS.length - 1
36 const ratio = (index: number) => (index / last).toFixed(4)
37
38 const leading = FADE_STOPS.map(
39 (alpha, index) => `rgb(0 0 0 / ${alpha}) calc(${size} * ${ratio(index)})`
40 )
41 const trailing = FADE_STOPS.map(
42 (_, index) =>
43 `rgb(0 0 0 / ${FADE_STOPS[last - index]}) calc(100% - ${size} * ${ratio(
44 last - index
45 )})`
46 )
47
48 return `linear-gradient(${axis}, ${[...leading, ...trailing].join(", ")})`
49}
50
51export function Marquee({
52 children,
53 className,
54 vertical = false,
55 reverse = false,
56 pauseOnHover = false,
57 repeat = 2,
58 duration = 40,
59 gap = "1rem",
60 paused = false,
61 fade = false,
62 style,
63 ...props
64}: MarqueeProps) {
65 const root = React.useRef<HTMLDivElement>(null)
66 // A marquee nobody can see is 40 seconds of work per loop for nothing.
67 const onScreen = useInViewport(root)
68 const mask = fade
69 ? fadeMask(
70 vertical ? "to bottom" : "to right",
71 fade === true ? "12%" : fade
72 )
73 : undefined
74
75 return (
76 <div
77 ref={root}
78 data-slot="marquee"
79 className={cn(
80 "group flex overflow-hidden",
81 vertical ? "flex-col" : "flex-row",
82 className
83 )}
84 style={
85 {
86 gap,
87 // The keyframes travel exactly one copy plus one gap, which is what
88// … truncated

What it pulls in

Other registry items

  • utils
  • use-in-viewport

Files it writes

  • registry/loomui/marquee.tsx

Facts

Registry
loomui
Type
registry:ui
Access
Free
Files written
1
Theme wiring
ships cssVars
Licence
MIT
In the index
at or before 2026-08-20
Last confirmed
yesterday

Go to the source

Docs on loomui loomui.design rjcuff/Loom-UI on GitHub Raw registry item This item as JSON

More from loomui

All 91 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Aurora Backdropaurora-backdroploomuiComponentsFreeno deps
Bento Gridbento-gridloomuiComponentsFreeno deps
Card Stackcard-stackloomuiComponentsFreeno deps
Compare Slidercompare-sliderloomuiComponentsFreeno deps
Confetti Buttonconfetti-buttonloomuiComponentsFreeno deps
Count Upcount-uploomuiComponentsFreeno deps
Credit Cardcredit-cardloomuiComponentsFreeno deps
DrawerdrawerloomuiComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored on what can be checked

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex