Opus Motion ★ Star on GitHub

Data · funnel-conversion

Funnel conversion

A conversion funnel: stage bars narrow in proportion to their value and grow in one after another from the top, labels with colour keys on the left, count-up values on the right, step-to-step "↓ 40%" conversion pills between stages and an overall conversion figure at the bottom.

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

Funnel conversion: three frames of the animated chart, start, middle and end
Funnel conversion — start, middle and end of the 6.0-second motion.

What Funnel conversion is for

Sales and signup funnels, hiring pipelines, checkout drop-off, content-to-lead stories, any "how many survive each step" breakdown. Replace stages, colours, prefix / suffix.

  • funnel
  • conversion
  • pipeline
  • sales
  • chart
  • data
  • drop-off
  • stages
  • infographic
  • count-up
  • marketing
  • overlay

Details

Category
Animated charts & data visualisation
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
stages title subtitle prefix
Colour props
colors background ink
Mood
hud, playful
Roles
accent, subject

Use Funnel conversion in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render funnel-conversion --props '{"stages":[{"label":"Visitors","value":48000},{"label":"Sign-ups","value":19200},{"label":"Trials","value":8600},{"label":"Paying","value":3100},{"label":"Renewed","value":1900}],"title":"From visit to renewal","subtitle":"Users at each stage of the journey","prefix":"","colors":["#2F6FED","#3D83F0","#3F9AE6","#2DB3C6","#16B39A","#3CC48A"],"background":"#F5F3EE","ink":"#18212B"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export funnel-conversion --as webm-alpha --props '{"stages":[{"label":"Visitors","value":48000},{"label":"Sign-ups","value":19200},{"label":"Trials","value":8600},{"label":"Paying","value":3100},{"label":"Renewed","value":1900}],"title":"From visit to renewal","subtitle":"Users at each stage of the journey","prefix":"","colors":["#2F6FED","#3D83F0","#3F9AE6","#2DB3C6","#16B39A","#3CC48A"],"background":"#F5F3EE","ink":"#18212B"}'

React / Next.js

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

<MotionPlayer
  motion="funnel-conversion"
  props={{
    stages: [
      {label: 'Visitors', value: 48000},
      {label: 'Sign-ups', value: 19200},
      {label: 'Trials', value: 8600},
      {label: 'Paying', value: 3100},
      {label: 'Renewed', value: 1900},
    ],
    title: 'From visit to renewal',
    subtitle: 'Users at each stage of the journey',
    prefix: '',
    colors: ['#2F6FED', '#3D83F0', '#3F9AE6', '#2DB3C6', '#16B39A', '#3CC48A'],
    background: '#F5F3EE',
    ink: '#18212B',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="funnel-conversion"
  props='{"stages":[{"label":"Visitors","value":48000},{"label":"Sign-ups","value":19200},{"label":"Trials","value":8600},{"label":"Paying","value":3100},{"label":"Renewed","value":1900}],"title":"From visit to renewal","subtitle":"Users at each stage of the journey","prefix":"","colors":["#2F6FED","#3D83F0","#3F9AE6","#2DB3C6","#16B39A","#3CC48A"],"background":"#F5F3EE","ink":"#18212B"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "funnel-conversion",
      "props": {
        "stages": [
          {
            "label": "Visitors",
            "value": 48000
          },
          {
            "label": "Sign-ups",
            "value": 19200
          },
          {
            "label": "Trials",
            "value": 8600
          },
          {
            "label": "Paying",
            "value": 3100
          },
          {
            "label": "Renewed",
            "value": 1900
          }
        ],
        "title": "From visit to renewal",
        "subtitle": "Users at each stage of the journey",
        "prefix": "",
        "colors": [
          "#2F6FED",
          "#3D83F0",
          "#3F9AE6",
          "#2DB3C6",
          "#16B39A",
          "#3CC48A"
        ],
        "background": "#F5F3EE",
        "ink": "#18212B"
      }
    }
  ]
}

Funnel conversion props

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

PropDefaultWhat it does
stages[{"label":"Visitors","value":48000},{"label":"Sign-ups","value":19200},{"label":"Trials…stages top to bottom [{label, value, color?}]; widths are proportional to value
title"From visit to renewal"headline (empty = none)
subtitle"Users at each stage of the journey"small line under the headline (empty = none)
prefix""text before values
suffix""text after values, e.g. "K"
decimals0decimals on stage values
conversionDecimals0decimals on the conversion percentages
showConversiontrueshow the "↓ n%" pill between stages
showPercentInsidetrueprint each stage share of the top inside its bar when wide enough
summaryLabel"Overall conversion"label of the final overall-conversion line (empty = hide it)
colors["#2F6FED","#3D83F0","#3F9AE6","#2DB3C6","#16B39A","#3CC48A"]palette for stages without their own colour
background"#F5F3EE"page colour, or "transparent"
ink"#18212B"text colour
fontFamily""CSS font family (empty = Space Grotesk)
startAt10frame the first stage appears
speed1animation speed multiplier

Notes & credits

Technique sources:

  • original round-3 chart motion