Opus Motion ★ Star on GitHub

Data · org-chart-tree

Org chart tree

A hierarchy diagram from one nested tree prop: the root card pops in, then elbow connectors draw down (or across, in vertical frames) and each level of cards pops in, with branches colour-coded and an optional highlighted node that spotlights its chain of command.

A free, MIT-licensed animated chart from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Org chart tree: three frames of the animated chart, start, middle and end
Org chart tree — start, middle and end of the 7.0-second motion.

What Org chart tree is for

Org charts, team structures, decision trees, site maps, product families, taxonomies, family trees. Pass tree as {name, role?, children:[...]} nested to any depth; reflows left-to-right in 9:16.

  • org chart
  • tree
  • hierarchy
  • diagram
  • team
  • structure
  • taxonomy
  • sitemap
  • decision tree
  • infographic
  • data
  • overlay
  • connectors

Details

Category
Animated charts & data visualisation
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
title subtitle
Colour props
colors cardColor rootColor lineColor background ink
Mood
hud, ui
Roles
accent, subject

Use Org chart tree in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add org-chart-tree --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render org-chart-tree --props '{"title":"How the company is organised","subtitle":"Three departments, seven teams","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"cardColor":"#FFFFFF","rootColor":"#18212B","lineColor":"#9AA3AD","background":"#F5F3EE","ink":"#18212B"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export org-chart-tree --as webm-alpha --props '{"title":"How the company is organised","subtitle":"Three departments, seven teams","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"cardColor":"#FFFFFF","rootColor":"#18212B","lineColor":"#9AA3AD","background":"#F5F3EE","ink":"#18212B"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="org-chart-tree"
  props={{
    title: 'How the company is organised',
    subtitle: 'Three departments, seven teams',
    colors: [
      '#2F6FED',
      '#FF7A45',
      '#16B39A',
      '#F2B134',
      '#8E5CF0',
      '#E5487F',
      '#5BC0EB',
      '#7A8794',
    ],
    cardColor: '#FFFFFF',
    rootColor: '#18212B',
    lineColor: '#9AA3AD',
    background: '#F5F3EE',
    ink: '#18212B',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="org-chart-tree"
  props='{"title":"How the company is organised","subtitle":"Three departments, seven teams","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"cardColor":"#FFFFFF","rootColor":"#18212B","lineColor":"#9AA3AD","background":"#F5F3EE","ink":"#18212B"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "org-chart-tree",
      "props": {
        "title": "How the company is organised",
        "subtitle": "Three departments, seven teams",
        "colors": [
          "#2F6FED",
          "#FF7A45",
          "#16B39A",
          "#F2B134",
          "#8E5CF0",
          "#E5487F",
          "#5BC0EB",
          "#7A8794"
        ],
        "cardColor": "#FFFFFF",
        "rootColor": "#18212B",
        "lineColor": "#9AA3AD",
        "background": "#F5F3EE",
        "ink": "#18212B"
      }
    }
  ]
}

Org chart tree props

15 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
tree{"name":"Chief Executive","role":"Leadership","children":[{"name":"Product","role":"Hea…hierarchy {name, role?, color?, children?: [...]} nested to any depth
title"How the company is organised"headline (empty = none)
subtitle"Three departments, seven teams"small line under the headline (empty = none)
direction"auto""auto" (down in 16:9 / 1:1, across in 9:16), "down" or "right"
showInitialsfalsedraw a coloured initials badge in each card
highlight""name of a node to spotlight at the end (empty = none); its ancestors and descendants stay lit
colors["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"]palette: one colour per top-level branch
cardColor"#FFFFFF"card fill colour
rootColor"#18212B"root card colour
lineColor"#9AA3AD"connector colour
background"#F5F3EE"page colour, or "transparent" to sit over other content
ink"#18212B"text colour
fontFamily""CSS font family (empty = Space Grotesk)
startAt10frame the root card appears
speed1animation speed multiplier

Notes & credits

Technique sources:

  • original round-3 chart motion