Opus Motion ★ Star on GitHub

Data · cause-effect-chain

Cause and effect chain

Step boxes linked by dashed arrows; each arrow fills with a travelling pulse and the next box lights up, the colour sliding from the cause colour to the effect colour, ending with a pulse ring on the last box.

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

Cause and effect chain: three frames of the animated chart, start, middle and end
Cause and effect chain — start, middle and end of the 8.0-second motion.

What Cause and effect chain is for

Domino-effect explainers, "how X leads to Y" chains, root-cause stories, economics / science / news cause chains — pass `steps` (2-7 short strings).

  • cause
  • effect
  • chain
  • flow
  • steps
  • domino
  • sequence
  • arrows
  • process
  • because
  • consequence
  • explainer
  • education

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
background ink accent accent2 card
Mood
—
Roles
subject

Use Cause and effect chain in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render cause-effect-chain --props '{"title":"How one decision ripples out","background":"#0F1B2D","ink":"#EAF0FA","accent":"#F4B63D","accent2":"#E5543F","card":"#1B2D48"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export cause-effect-chain --as webm-alpha --props '{"title":"How one decision ripples out","background":"#0F1B2D","ink":"#EAF0FA","accent":"#F4B63D","accent2":"#E5543F","card":"#1B2D48"}'

React / Next.js

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

<MotionPlayer
  motion="cause-effect-chain"
  props={{
    title: 'How one decision ripples out',
    background: '#0F1B2D',
    ink: '#EAF0FA',
    accent: '#F4B63D',
    accent2: '#E5543F',
    card: '#1B2D48',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="cause-effect-chain"
  props='{"title":"How one decision ripples out","background":"#0F1B2D","ink":"#EAF0FA","accent":"#F4B63D","accent2":"#E5543F","card":"#1B2D48"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "cause-effect-chain",
      "props": {
        "title": "How one decision ripples out",
        "background": "#0F1B2D",
        "ink": "#EAF0FA",
        "accent": "#F4B63D",
        "accent2": "#E5543F",
        "card": "#1B2D48"
      }
    }
  ]
}

Cause and effect chain props

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

PropDefaultWhat it does
title"How one decision ripples out"heading above the chain (empty = none)
steps["Interest rates rise","Loans cost more","People spend less","Businesses sell less","Pr…chain step texts, in order (up to 7)
causeLabel"CAUSE"tag on the first box
effectLabel"EFFECT"tag on the last box
background"#0F1B2D"backdrop colour or 'transparent'
ink"#EAF0FA"title and idle text colour
accent"#F4B63D"cause end colour
accent2"#E5543F"effect end colour
card"#1B2D48"idle box fill
fontFamily""optional CSS font-family (empty = grotesk)
startAt0frame the chain starts
stagger30frames between steps lighting up

Notes & credits

Technique sources:

  • original (round 3)