---
site: ui.zyx.tw
url: https://ui.zyx.tw/scrolly
title: Scrolly
description: "A diagram or trace that stays on screen while its lines scroll past, one step a line, with play and pause."
---

# Scrolly

A diagram or trace that stays on screen while its lines scroll past, one step a line, with play and pause.

Group: Figures.

## Install

```bash
bunx shadcn@latest init https://ui.zyx.tw/r/base.json
bunx shadcn@latest add @zyx1121/scrolly
```

The first line sets a project up on the base; skip it if the project already has it.

## Item

### Scrolly (`scrolly`)

A diagram or trace that stays on screen while its lines scroll past, one step a line, with play and pause.

- Use when: A long walk through a diagram or a trace, step by step as the page scrolls.
- Not for: Short figures; use figure-diagram or figure-trace alone.
- Related: [figure-diagram](https://ui.zyx.tw/figure-diagram.md), [figure-trace](https://ui.zyx.tw/figure-trace.md)
- Categories: figure, motion
- Install: `bunx shadcn@latest add https://ui.zyx.tw/r/scrolly.json`
- JSON: [scrolly.json](https://ui.zyx.tw/r/scrolly.json)
- Page: [https://ui.zyx.tw/scrolly](https://ui.zyx.tw/scrolly) ([Markdown](https://ui.zyx.tw/scrolly.md))
- Registry dependencies: `https://ui.zyx.tw/r/utils.json`, `https://ui.zyx.tw/r/figure-diagram.json`, `https://ui.zyx.tw/r/figure-trace.json`

## More

- [Index](https://ui.zyx.tw/index.md): every item
- [Agent instructions](https://ui.zyx.tw/agent-instructions.md): the call order and the rules
- [DESIGN.md](https://github.com/zyx1121/www.zyx.tw/blob/main/apps/ui/DESIGN.md): the design contract
