Opus Motion ★ Star on GitHub

Data · grid-exception

Grid exception (the one that breaks out)

Swiss grid poster where everything moves in exact eased snaps and one red circle hesitates, then breaks out in the only linear move, growing and pausing mid-flight before landing off the grid; a mono readout flips from on grid to red off grid, the other elements re-flow nearest-first and the grid lines extend to fill the frame.

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

Grid exception (the one that breaks out): three frames of the animated chart, start, middle and end
Grid exception (the one that breaks out) — start, middle and end of the 7.0-second motion.

What Grid exception (the one that breaks out) is for

"One product or person that breaks the mould" stories, the outlier in the data, launch films: a system plus one exception.

  • swiss
  • grid
  • outlier
  • exception
  • breaks the rules
  • poster
  • circle
  • readout
  • coordinates
  • system
  • launch
  • reflow
  • minimal

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
no
Seamless loop
no
Text props
items
Colour props
page paper ink muted signal
Mood
ui
Roles
subject

Use Grid exception (the one that breaks out) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render grid-exception --props '{"items":[{"id":"a","col":0,"row":0,"w":2,"h":2,"kind":"block"},{"id":"b","col":2,"row":0,"w":3,"h":1,"kind":"bar"},{"id":"c","col":0,"row":2,"w":3,"h":1,"kind":"text","text":"One system."},{"id":"d","col":3,"row":2,"w":1,"h":1,"kind":"block"},{"id":"e","col":4,"row":2,"w":2,"h":2,"kind":"ring"},{"id":"f","col":0,"row":4,"w":4,"h":1,"kind":"bar"},{"id":"g","col":4,"row":6,"w":2,"h":2,"kind":"block"},{"id":"h","col":0,"row":6,"w":3,"h":1,"kind":"text","text":"One exception."}],"page":"#e6e3dc","paper":"#fbfaf6","ink":"#111111","muted":"#bdb9ae","signal":"#e5322d"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export grid-exception --as mp4 --props '{"items":[{"id":"a","col":0,"row":0,"w":2,"h":2,"kind":"block"},{"id":"b","col":2,"row":0,"w":3,"h":1,"kind":"bar"},{"id":"c","col":0,"row":2,"w":3,"h":1,"kind":"text","text":"One system."},{"id":"d","col":3,"row":2,"w":1,"h":1,"kind":"block"},{"id":"e","col":4,"row":2,"w":2,"h":2,"kind":"ring"},{"id":"f","col":0,"row":4,"w":4,"h":1,"kind":"bar"},{"id":"g","col":4,"row":6,"w":2,"h":2,"kind":"block"},{"id":"h","col":0,"row":6,"w":3,"h":1,"kind":"text","text":"One exception."}],"page":"#e6e3dc","paper":"#fbfaf6","ink":"#111111","muted":"#bdb9ae","signal":"#e5322d"}'

React / Next.js

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

<MotionPlayer
  motion="grid-exception"
  props={{
    items: [
      {id: 'a', col: 0, row: 0, w: 2, h: 2, kind: 'block'},
      {id: 'b', col: 2, row: 0, w: 3, h: 1, kind: 'bar'},
      {
        id: 'c',
        col: 0,
        row: 2,
        w: 3,
        h: 1,
        kind: 'text',
        text: 'One system.',
      },
      {id: 'd', col: 3, row: 2, w: 1, h: 1, kind: 'block'},
      {id: 'e', col: 4, row: 2, w: 2, h: 2, kind: 'ring'},
      {id: 'f', col: 0, row: 4, w: 4, h: 1, kind: 'bar'},
      {id: 'g', col: 4, row: 6, w: 2, h: 2, kind: 'block'},
      {
        id: 'h',
        col: 0,
        row: 6,
        w: 3,
        h: 1,
        kind: 'text',
        text: 'One exception.',
      },
    ],
    page: '#e6e3dc',
    paper: '#fbfaf6',
    ink: '#111111',
    muted: '#bdb9ae',
    signal: '#e5322d',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="grid-exception"
  props='{"items":[{"id":"a","col":0,"row":0,"w":2,"h":2,"kind":"block"},{"id":"b","col":2,"row":0,"w":3,"h":1,"kind":"bar"},{"id":"c","col":0,"row":2,"w":3,"h":1,"kind":"text","text":"One system."},{"id":"d","col":3,"row":2,"w":1,"h":1,"kind":"block"},{"id":"e","col":4,"row":2,"w":2,"h":2,"kind":"ring"},{"id":"f","col":0,"row":4,"w":4,"h":1,"kind":"bar"},{"id":"g","col":4,"row":6,"w":2,"h":2,"kind":"block"},{"id":"h","col":0,"row":6,"w":3,"h":1,"kind":"text","text":"One exception."}],"page":"#e6e3dc","paper":"#fbfaf6","ink":"#111111","muted":"#bdb9ae","signal":"#e5322d"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "grid-exception",
      "props": {
        "items": [
          {
            "id": "a",
            "col": 0,
            "row": 0,
            "w": 2,
            "h": 2,
            "kind": "block"
          },
          {
            "id": "b",
            "col": 2,
            "row": 0,
            "w": 3,
            "h": 1,
            "kind": "bar"
          },
          {
            "id": "c",
            "col": 0,
            "row": 2,
            "w": 3,
            "h": 1,
            "kind": "text",
            "text": "One system."
          },
          {
            "id": "d",
            "col": 3,
            "row": 2,
            "w": 1,
            "h": 1,
            "kind": "block"
          },
          {
            "id": "e",
            "col": 4,
            "row": 2,
            "w": 2,
            "h": 2,
            "kind": "ring"
          },
          {
            "id": "f",
            "col": 0,
            "row": 4,
            "w": 4,
            "h": 1,
            "kind": "bar"
          },
          {
            "id": "g",
            "col": 4,
            "row": 6,
            "w": 2,
            "h": 2,
            "kind": "block"
          },
          {
            "id": "h",
            "col": 0,
            "row": 6,
            "w": 3,
            "h": 1,
            "kind": "text",
            "text": "One exception."
          }
        ],
        "page": "#e6e3dc",
        "paper": "#fbfaf6",
        "ink": "#111111",
        "muted": "#bdb9ae",
        "signal": "#e5322d"
      }
    }
  ]
}

Grid exception (the one that breaks out) props

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

PropDefaultWhat it does
cols6grid columns
rows8grid rows
items[{"id":"a","col":0,"row":0,"w":2,"h":2,"kind":"block"},{"id":"b","col":2,"row":0,"w":3,…grid elements: id, col, row, w, h (cells), kind block|bar|ring|text (+ text)
exceptionFrom[5,0]start cell [col,row] of the red circle
exceptionTo[0.9,3.1]landing position [col,row] — non-integer lands off grid
endDiameter2.2circle diameter in cells at landing
reflowTo{"c":[3,1],"f":[2,5]}ids of elements that move out of the way: id -> [col,row]
hesitateAt56frame of the twitch
breakAt84frame the flight starts
pauseFrames4mid-flight pause in frames
flightFrames36moving frames of the whole flight
reflowFrom122frame the re-flow starts
page"#e6e3dc"page colour
paper"#fbfaf6"poster colour
ink"#111111"element colour
muted"#bdb9ae"grid line colour
signal"#e5322d"exception colour

Notes & credits

Technique sources:

  • lemo-opuscar styles/swiss-motion demo/film.js (circleState, flight, drawCircle, gridState) + DEMO.md arc (MIT / CC BY 4.0, LemoLab)