BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/moco/scrolly

Scrolly Stage

moco/scrolly
FreeComponent

Scrollytelling stage: a pinned figure that updates as prose steps scroll past, unpinning below 1024px.

Live preview

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

Install it

npx shadcn@latest add https://mocoui.site/r/scrolly.json

Source

registry/scrolly/scrolly.tsxmocoui.site/r/scrolly.json
1"use client";
2
3import * as React from "react";
4import "./scrolly.css";
5
6export interface StepShape {
7 key: string;
8 caption: string;
9 text: React.ReactNode;
10}
11
12export interface ScrollyStageProps<S extends StepShape> {
13 steps: S[];
14 render: (step: S, index: number, progress: number) => React.ReactNode;
15 initial?: number;
16}
17
18/**
19 * A figure that pins to the viewport while prose steps scroll past it.
20 * Below 1024px it un-pins and each step renders its own static snapshot.
21 * With JS off, every step is visible and the figure shows the final state
22 * (add a `no-js` class to <html> and remove it with JS to get that fallback).
23 */
24export function ScrollyStage<S extends StepShape>({
25 steps,
26 render,
27 initial = 0,
28}: ScrollyStageProps<S>) {
29 const [active, setActive] = React.useState(initial);
30 const refs = React.useRef<(HTMLDivElement | null)[]>([]);
31
32 React.useEffect(() => {
33 const io = new IntersectionObserver(
34 (entries) => {
35 for (const e of entries) {
36 if (!e.isIntersecting) continue;
37 const i = Number((e.target as HTMLElement).dataset.step);
38 if (!Number.isNaN(i)) setActive(i);
39 }
40 },
41 // Fire when a step crosses the middle band of the viewport.
42 { rootMargin: "-45% 0px -45% 0px", threshold: 0 },
43 );
44 refs.current.forEach((el) => el && io.observe(el));
45 return () => io.disconnect();
46 }, [steps.length]);
47
48 const current = steps[Math.min(active, steps.length - 1)];
49
50 return (
51 <div className="moco-scrolly">
52 <div className="moco-scrolly-figure" aria-hidden="true">
53 <div className="moco-plate">
54 {render(current, active, active / Math.max(1, steps.length - 1))}
55 </div>
56 <p className="moco-step-cap">{current.caption}</p>
57 </div>
58
59 <div className="moco-scrolly-steps">
60 {steps.map((s, i) => (
61 <div
62 key={s.key}
63 data-step={i}
64 data-on={i === active}
65 className="moco-scrolly-step"
66 ref={(el) => {
67 refs.current[i] = el;
68 }}
69 >
70 {/* Mobile / no-JS snapshot, above its own paragraph. */}
71 <div className="moco-scrolly-inline">
72 <div className="moco-plate">
73 {render(s, i, i / Math.max(1, steps.length - 1))}
74 </div>
75 <p className="moco-step-cap">{s.caption}</p>
76 </div>
77 <div>{s.text}</div>
78 </div>
79 ))}
80 </div>
81// … truncated

What it pulls in

Other registry items

  • https://mocoui.site/r/tokens.json

Files it writes

  • registry/scrolly/scrolly.tsx
  • registry/scrolly/scrolly.css

Facts

Registry
moco
Type
registry:component
Access
Free
Files written
2
Licence
MIT
In the index
at or before 2026-08-16
Last confirmed
today

Go to the source

Docs on moco mocoui.site shreya0204/moco on GitHub Raw registry item This item as JSON

More from moco

All 20 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
CodecodemocoComponentsFree1 dep · 3 files
ComparecomparemocoComponentsFreeno deps · 2 files
Count UpcountupmocoComponentsFreeno deps · 2 files
CovercovermocoComponentsFreeno deps · 2 files
Diagram KitdiagrammocoComponentsFreeno deps · 2 files
Dot GriddotgridmocoComponentsFreeno deps · 2 files
FigurefiguremocoComponentsFreeno deps · 2 files
HookshooksmocoComponentsFreeno deps

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

ToolDrift

What the AI coding tools changed last night

tooldrift.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 ToolDrift

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 ToolDrift

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 ToolDrift

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