Opus Motion ★ Star on GitHub

Data · network-graph

Network graph (your nodes and edges)

A labelled node-link diagram built from your own nodes and edges: a seeded force layout (computed once, fully deterministic) is revealed outward from the hub, nodes pop in coloured by group and sized by importance, edges draw between them, and the hub pulses with expanding rings; nodes drift slightly after.

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

Network graph (your nodes and edges): three frames of the animated chart, start, middle and end
Network graph (your nodes and edges) — start, middle and end of the 7.0-second motion.

What Network graph (your nodes and edges) is for

Explicit relationship maps: system architecture, supply chains, org or contact networks, dependency graphs, knowledge graphs, social graphs with named members. Pass nodes [{id, label?, group?, size?}] and edges [{from, to, weight?}]; for a random generated growth effect use node-network instead.

  • network
  • graph
  • nodes
  • edges
  • links
  • diagram
  • relationships
  • architecture
  • dependency
  • knowledge graph
  • force layout
  • hub
  • infographic
  • data
  • overlay

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 background ink accent
Mood
hud
Roles
accent, subject

Use Network graph (your nodes and edges) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render network-graph --props '{"title":"How the pieces connect","subtitle":"Services, clients and data stores around one core","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"background":"#F5F3EE","ink":"#18212B","accent":"#FF7A45"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export network-graph --as webm-alpha --props '{"title":"How the pieces connect","subtitle":"Services, clients and data stores around one core","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"background":"#F5F3EE","ink":"#18212B","accent":"#FF7A45"}'

React / Next.js

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

<MotionPlayer
  motion="network-graph"
  props={{
    title: 'How the pieces connect',
    subtitle: 'Services, clients and data stores around one core',
    colors: [
      '#2F6FED',
      '#FF7A45',
      '#16B39A',
      '#F2B134',
      '#8E5CF0',
      '#E5487F',
      '#5BC0EB',
      '#7A8794',
    ],
    background: '#F5F3EE',
    ink: '#18212B',
    accent: '#FF7A45',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="network-graph"
  props='{"title":"How the pieces connect","subtitle":"Services, clients and data stores around one core","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"background":"#F5F3EE","ink":"#18212B","accent":"#FF7A45"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "network-graph",
      "props": {
        "title": "How the pieces connect",
        "subtitle": "Services, clients and data stores around one core",
        "colors": [
          "#2F6FED",
          "#FF7A45",
          "#16B39A",
          "#F2B134",
          "#8E5CF0",
          "#E5487F",
          "#5BC0EB",
          "#7A8794"
        ],
        "background": "#F5F3EE",
        "ink": "#18212B",
        "accent": "#FF7A45"
      }
    }
  ]
}

Network graph (your nodes and edges) props

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

PropDefaultWhat it does
nodes[{"id":"Core","group":"Platform"},{"id":"API","group":"Platform"},{"id":"Auth","group":…nodes [{id, label?, group?, size?, color?}]; group sets the colour and legend; size (default = number of links) sets the radius; nodes missing here are created from the edges
edges[{"from":"Core","to":"API"},{"from":"Core","to":"Auth"},{"from":"Core","to":"Queue"},{"…links [{from, to, weight?}] using node ids; weight 0.1-10 thickens and shortens the link
seed3layout seed: change it to get a different arrangement of the same graph
title"How the pieces connect"headline (empty = none)
subtitle"Services, clients and data stores around one core"small line under the headline (empty = none)
showLabelstrueprint node names under the nodes
hub"Core"id of the node that reveals first and pulses (empty = the most connected node)
hubPulsetrueexpanding rings around the hub
minRadius14smallest node radius in u
maxRadius40largest node radius in u
edgeOpacity0.32link opacity 0-1
drift5gentle post-layout drift in u (0 = still)
colors["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"]palette for groups / nodes without their own colour
background"#F5F3EE"page colour, or "transparent" to sit over other content
ink"#18212B"text and link colour
accent"#FF7A45"colour of the hub links and pulse
fontFamily""CSS font family (empty = Space Grotesk)
startAt10frame the hub appears
speed1animation speed multiplier

Notes & credits

Technique sources:

  • original round-3 chart motion