Opus Motion ★ Star on GitHub

Data · flow-diagram

Flow diagram (packets on edges)

Rounded boxes with icons joined by arrows that draw on in sequence (14 f each, 5 f stagger); glowing packets or labelled chips travel the edges, each receiving node pulses 1 -> 1.08 -> 1 and a highlight ring follows the active step. Auto-lays out left-to-right (top-to-bottom on portrait) from the edge graph; blueprint / paper / dark themes.

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

Flow diagram (packets on edges): three frames of the animated chart, start, middle and end
Flow diagram (packets on edges) — start, middle and end of the 9.0-second motion.

What Flow diagram (packets on edges) is for

How-it-works explainers (APIs, AI agents, networks, payments), onboarding and architecture videos: pass `nodes` + `edges`; optionally `steps` to script which edge fires when.

  • diagram
  • flow
  • flowchart
  • architecture
  • pipeline
  • api
  • workflow
  • nodes
  • edges
  • arrows
  • packets
  • how it works
  • explainer
  • agents
  • network
  • payments
  • blueprint

Details

Category
Animated charts & data visualisation
Length
9.0 s (270 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
title
Colour props
—
Mood
paper, blueprint, hud, playful, night
Roles
subject

Use Flow diagram (packets on edges) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render flow-diagram --props '{"title":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export flow-diagram --as mp4 --props '{"title":""}'

React / Next.js

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

<MotionPlayer
  motion="flow-diagram"
  props={{title: ''}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="flow-diagram"
  props='{"title":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "flow-diagram",
      "props": {
        "title": ""
      }
    }
  ]
}

Flow diagram (packets on edges) props

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

PropDefaultWhat it does
nodes[{"id":"app","label":"Your app","icon":"user"},{"id":"gw","label":"Gateway","icon":"shi…[{id, label, icon?: bolt|shield|chart|chat|globe|spark|lock|cog|user|db|cloud|star|queue|server|mail, x?, y? in % of frame}] (3-7 nodes)
edges[{"from":"app","to":"gw","label":"request"},{"from":"gw","to":"auth","label":"token"},{…[{from, to, label?}] — a label turns the packet into a chip
steps[][{at: frame, edge?: 'a>b' | index, node?: id}] — empty = auto: packets fire layer by layer and loop
direction"auto"'auto' (vertical on portrait) | 'horizontal' | 'vertical'
theme"blueprint"'blueprint' | 'paper' | 'dark'
accent""highlight colour (empty = theme default)
packetColor""packet colour (empty = accent)
drawFrames14frames to draw one edge
stagger5frames between edge starts
stepFrames28frames per step / packet travel
looptruerepeat the steps
title""optional heading

Notes & credits

Technique sources:

  • prompt-corpus: flow-diagram (31 cases)
  • awesome-opus5-5-videos prompts (MIT) — technique only