Opus Motion ★ Star on GitHub

Data · ride-dimension-line

Ride the dimension line

Quantities drawn as real lengths to one scale on a whiteboard: blue dimension arrows shoot from a shared start line while the camera rides their tips, arrowheads tap on landing, items short of the red limit line get struck through with a dashed shortfall, then the camera pulls back to the whole judgement frame and a verdict lands.

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

Ride the dimension line: three frames of the animated chart, start, middle and end
Ride the dimension line — start, middle and end of the 8.0-second motion.

What Ride the dimension line is for

Comparisons in real units — spans, ranges, distances, prices against a budget — that read better than bar charts.

  • dimension
  • measurement
  • comparison
  • scale
  • length
  • whiteboard
  • arrow
  • limit
  • budget
  • data
  • chart alternative
  • briefing
  • engineering
  • camera ride

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
no
Seamless loop
no
Text props
items unit verdict
Colour props
measure fail ink background
Mood
hud, ui
Roles
subject

Use Ride the dimension line in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render ride-dimension-line --props '{"items":[{"label":"Beam bridge","value":330},{"label":"Arch bridge","value":600},{"label":"Cable-stayed","value":1208},{"label":"Suspension","value":2023}],"unit":"m","verdict":"The ship decides the span.","measure":"#1F4FC8","fail":"#D33A21","ink":"#23272E","background":"#F3F1EB"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export ride-dimension-line --as mp4 --props '{"items":[{"label":"Beam bridge","value":330},{"label":"Arch bridge","value":600},{"label":"Cable-stayed","value":1208},{"label":"Suspension","value":2023}],"unit":"m","verdict":"The ship decides the span.","measure":"#1F4FC8","fail":"#D33A21","ink":"#23272E","background":"#F3F1EB"}'

React / Next.js

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

<MotionPlayer
  motion="ride-dimension-line"
  props={{
    items: [
      {label: 'Beam bridge', value: 330},
      {label: 'Arch bridge', value: 600},
      {label: 'Cable-stayed', value: 1208},
      {label: 'Suspension', value: 2023},
    ],
    unit: 'm',
    verdict: 'The ship decides the span.',
    measure: '#1F4FC8',
    fail: '#D33A21',
    ink: '#23272E',
    background: '#F3F1EB',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="ride-dimension-line"
  props='{"items":[{"label":"Beam bridge","value":330},{"label":"Arch bridge","value":600},{"label":"Cable-stayed","value":1208},{"label":"Suspension","value":2023}],"unit":"m","verdict":"The ship decides the span.","measure":"#1F4FC8","fail":"#D33A21","ink":"#23272E","background":"#F3F1EB"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "ride-dimension-line",
      "props": {
        "items": [
          {
            "label": "Beam bridge",
            "value": 330
          },
          {
            "label": "Arch bridge",
            "value": 600
          },
          {
            "label": "Cable-stayed",
            "value": 1208
          },
          {
            "label": "Suspension",
            "value": 2023
          }
        ],
        "unit": "m",
        "verdict": "The ship decides the span.",
        "measure": "#1F4FC8",
        "fail": "#D33A21",
        "ink": "#23272E",
        "background": "#F3F1EB"
      }
    }
  ]
}

Ride the dimension line props

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

PropDefaultWhat it does
items[{"label":"Beam bridge","value":330},{"label":"Arch bridge","value":600},{"label":"Cabl…[{label, value}] one dimension line each, drawn to one shared scale
unit"m"unit after each value
limit1000limit / requirement value (dashed red line); items below it fail
limitLabel"needed: 1,000 m"marker label at the limit line
verdict"The ship decides the span."red marker verdict after the pull-back (empty = none)
measure"#1F4FC8"measurement ink (blue)
fail"#D33A21"decision ink (red)
ink"#23272E"graphite ink for labels
itemFrames34frames between items
rideCameratruecamera rides the arrow tips (false = whole frame from the start)
background"#F3F1EB"board colour

Notes & credits

Technique sources:

  • lemo-opuscar styles/briefing-board demo/kit/board.js ink kind dim; DEMO.md judgement frames (MIT / CC BY 4.0, LemoLab)
  • analysis/sources/lemo-styles-a.md §7 ride-dimension-line