Opus Motion ★ Star on GitHub

Data · energy-jar-fill

Energy jar fill

Ink-line glass jars on a clay shelf rack light up one by one: saturated self-lit liquid rises with a meniscus, its glow spills onto the shelf, panels and label cards, and handwritten values count up, then everything drains.

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

Energy jar fill: three frames of the animated chart, start, middle and end
Energy jar fill — start, middle and end of the 6.0-second motion.

What Energy jar fill is for

Visualising stores and quantities (energy, budget, storage, progress) as glowing jars — a physical alternative to a bar chart in explainers and lessons.

  • jar
  • fill
  • liquid
  • glow
  • energy
  • store
  • shelf
  • rack
  • ink
  • hatching
  • textbook
  • education
  • physics
  • counter
  • handwritten
  • quantity
  • bar chart alternative
  • progress
  • ink-hatch-3d
  • pop-up book
  • loop

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
no
Seamless loop
no
Text props
title caption
Colour props
paper ink
Mood
paper, 3d, nature, hud, ui
Roles
subject

Use Energy jar fill in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render energy-jar-fill --props '{"title":"Energy stores","caption":"Fig. 1  Eight stores on one shelf. Each jar lights when its store fills.","paper":"#EFEDE9","ink":"#1E1E1E"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export energy-jar-fill --as mp4 --props '{"title":"Energy stores","caption":"Fig. 1  Eight stores on one shelf. Each jar lights when its store fills.","paper":"#EFEDE9","ink":"#1E1E1E"}'

React / Next.js

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

<MotionPlayer
  motion="energy-jar-fill"
  props={{
    title: 'Energy stores',
    caption: 'Fig. 1  Eight stores on one shelf. Each jar lights when its store fills.',
    paper: '#EFEDE9',
    ink: '#1E1E1E',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="energy-jar-fill"
  props='{"title":"Energy stores","caption":"Fig. 1  Eight stores on one shelf. Each jar lights when its store fills.","paper":"#EFEDE9","ink":"#1E1E1E"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "energy-jar-fill",
      "props": {
        "title": "Energy stores",
        "caption": "Fig. 1  Eight stores on one shelf. Each jar lights when its store fills.",
        "paper": "#EFEDE9",
        "ink": "#1E1E1E"
      }
    }
  ]
}

Energy jar fill props

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

PropDefaultWhat it does
jars[{"label":"Gravitational","color":"#7E2AE4","value":14,"unit":"J"},{"label":"Kinetic","…jar list in reading order (top row first): {label, color, value (full value shown on the card), unit}
timeline[{"jar":0,"level":0.78,"at":8},{"jar":1,"level":0.62,"at":34},{"jar":2,"level":0.74,"at…fill / drain events: {jar (index), level 0..1, at (frame)}; level 0 drains
drainAt150frame where every lit jar drains (staggered 3 f); 0 = never
fillFrames12frames for a fill (easeOutCubic; source 0.35-0.45 s)
drainFrames9frames for a drain (easeInCubic; source 0.3 s)
cols4jars per shelf
rows2number of shelves (1-3)
eyebrow"Lesson 1"small letter-spaced eyebrow above the title ("" hides)
title"Energy stores"serif italic title top-left ("" hides)
caption"Fig. 1 Eight stores on one shelf. Each jar lights when its store fills."italic figure caption bottom-left ("" hides)
glow1glow spill strength (0 = none, 1 = source)
labelstrueshow the paper label cards with handwritten values
suntrueshow the ink sun icon
paper"#EFEDE9"page paper colour
ink"#1E1E1E"line / text ink colour
yaw-203/4 view yaw in degrees (drifts +7° over the clip)
pitch28camera elevation in degrees

Notes & credits

Technique sources:

  • video x3 3:40-4:60 (3.4-4.6 s, 5.6-6.2 s, 22-28 s)