Data · json-tree-expand
JSON tree expand
A JSON viewer built from a data prop: objects and arrays expand node by node with a rotating caret and child-count badge, indent guides, syntax-coloured keys and values, a highlighted newest row, auto-scroll, and a path breadcrumb along the bottom.
A free, MIT-licensed animated chart from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

What JSON tree expand is for
API-response explainers, "what the data looks like" beats, structured-output / schema stories for AI, developer docs and tutorials, config-file walkthroughs.
Details
- Category
- Animated charts & data visualisation
- Length
- 8.0 s (240 frames at 30 fps)
- Formats
- 16:9, 1:1, 9:16
- Weight
- light
- Transparent overlay
- yes
- Seamless loop
- no
- Text props
title- Colour props
backgroundpanelinkaccent- Mood
- hud, playful, ui
- Roles
- subject
Use JSON tree expand in Remotion, React or HTML
Remotion project
# copy this motion into your Remotion project
node cli/mgl.mjs add json-tree-expand --to ../my-app/src
# render an mp4 (run in the library folder)
node cli/mgl.mjs render json-tree-expand --props '{"title":"response.json","background":"#0B0E14","panel":"#12161F","ink":"#E6EAF2","accent":"#79B8FF"}'
# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export json-tree-expand --as webm-alpha --props '{"title":"response.json","background":"#0B0E14","panel":"#12161F","ink":"#E6EAF2","accent":"#79B8FF"}'React / Next.js
import {MotionPlayer} from 'opus-motion-library/web';
<MotionPlayer
motion="json-tree-expand"
props={{
title: 'response.json',
background: '#0B0E14',
panel: '#12161F',
ink: '#E6EAF2',
accent: '#79B8FF',
}}
playOnView
loop="auto"
/>Plain HTML / WordPress
<script src="opus-motion.element.js" defer></script>
<opus-motion motion="json-tree-expand"
props='{"title":"response.json","background":"#0B0E14","panel":"#12161F","ink":"#E6EAF2","accent":"#79B8FF"}'>
</opus-motion>Compose spec (multi-scene video)
{
"width": 1920,
"height": 1080,
"fps": 30,
"scenes": [
{
"motion": "json-tree-expand",
"props": {
"title": "response.json",
"background": "#0B0E14",
"panel": "#12161F",
"ink": "#E6EAF2",
"accent": "#79B8FF"
}
}
]
}JSON tree expand props
13 parameters — change any of them to make the motion yours.
| Prop | Default | What it does |
|---|---|---|
data | {"id":1042,"name":"Ada Example","active":true,"roles":["admin","editor"],"profile":{"em… | any JSON value (object / array) to expand |
title | "response.json" | file name in the window header |
collapseDepth | 3 | nesting depth from which objects stay collapsed as {…} (3 = three levels expand) |
showBreadcrumb | true | show the $.path breadcrumb of the newest row |
showLineNumbers | true | show line numbers |
every | 7 | frames between rows |
speed | 1 | timing multiplier |
startAt | 0 | frame the viewer starts |
background | "#0B0E14" | page colour or 'transparent' |
panel | "#12161F" | window colour (dark or light — syntax colours adapt) |
ink | "#E6EAF2" | text colour |
accent | "#79B8FF" | highlight / breadcrumb colour |
fontFamily | "" | monospace font override (empty = JetBrains Mono) |
Related motions

API request flow
Explaining how an API call works, backend architecture, REST / HTTP basics, error-handling stories (a 500 shakes the node), latency and…
api-request-flow
Git branch graph
Explaining branching and merging, release flow, pull-request workflows, version-control tutorials, "how our team ships" and developer-tool…
git-branch-graph
Deploy pipeline stages
DevOps / CI-CD explainers, "how we ship" and release-process videos, deployment tooling promos, incident stories (set one stage to fail).
deploy-pipeline-stages
Org chart tree
Org charts, team structures, decision trees, site maps, product families, taxonomies, family trees. Pass tree as {name, role?,…
org-chart-tree
Code diff highlight
Pull-request and code-review explainers, "what changed" beats, refactor / bug-fix walkthroughs, changelog and developer-tool promos,…
code-diff-highlight
Crowd tracks
Footfall / mobility / network-activity explainers, smart-city and retail-analytics films, "everyone is connected" beats; drop a crowd…
crowd-tracks
Notes & credits
Technique sources:
- original (generic developer explainer)