
Speeding marquee
Scroll, Text, Hover
The JSON viewer of a developer tool: branches open on a spring, every value has its type’s colour and a closed branch says how many keys it holds. Hover a row and the keys above it light up, the branch’s guide glows and the bar below writes the path, copied with one tap.
A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.
<!doctype html>
<!--
"JSON tree viewer" from Animorio · https://animorio.com
License: free on your own sites and your clients’ sites, paid work included.
Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>JSON tree viewer</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage">
<!-- a JSON viewer: branches open on a spring, every value has the colour of its type, a closed branch
says how many keys it holds, and the bar below writes the path of the row being read -->
<section class="jv" data-jv aria-label="JSON viewer">
<header class="jv__head">
<span class="jv__file">order.json</span>
<span class="jv__meta" data-meta></span>
</header>
<div class="jv__tree" data-tree role="tree" aria-label="order.json"></div>
<footer class="jv__bar">
<span class="jv__path" data-path aria-live="polite"></span>
<span class="jv__roll jv__copy"><span data-copy>Click to copy</span></span>
</footer>
</section>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></path></svg>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script src="script.js"></script>
</body>
</html>Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.
15 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:
Take “JSON tree viewer” from Animorio and fit it into my siteA recursive function reads the object and makes one row per key; for objects and arrays it adds a container for the children. Each row knows its path and its parent: change the data at the top of the script and the tree redraws.
The children’s container goes from zero to its real height, measured by setting height auto for an instant; GSAP gets there with a bounce and puts auto back at the end, so a branch opened inside another makes it grow by itself.
Reading a row climbs from parent to parent: each takes the class that colours its key and lights its guide. The pieces of the path are already stored on the row, so the bar writes them without any work.
A closed branch has the inert attribute: its rows cannot take focus and screen readers skip them. Rows are buttons with aria-expanded.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #5ad4e6 | The colour of the path: the keys above the row being read and the branch’s guide. |
INDENT | script.js | 18 | How many pixels each level of the tree is indented. |
SPRING | script.js | 1 | How much a branch bounces as it opens: 0 = none, 2 = a lot. |
LOOP | script.js | true | Left alone, the demo’s pointer opens two branches, reads and copies a path. |
In an API’s documentation, in the panel of an app showing a call’s response, in a logging or debugging tool. The same tree with a path suits nested settings, a configuration file, a catalogue’s categories.
The same card, as wide as the screen; the tree has a fixed height and scrolls inside itself when every branch is open. A finger’s tap reads the row and opens the branch or copies the path.
Branches open and close at once, rows do not slide and the path appears already written. The demo does not move by itself.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.1 KB; the libraries: GSAP 28 KB.
Tested on 20 November 2026
Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.