Opus Motion ★ Star on GitHub

Documents · textbook-energy-lab

Textbook energy lab

An open physics textbook on a sage desk under window-light shadows. The right-page pencil apparatus stands up: a ball rolls a U-track while three beakers (gravitational, kinetic, thermal) trade liquid levels, joined by glowing transfer arcs.

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

Textbook energy lab: three frames of the document animation, start, middle and end
Textbook energy lab — start, middle and end of the 10.0-second motion.

What Textbook energy lab is for

Explaining energy conservation, or any interactive-textbook look: a lesson page with a live diagram beside the formula.

  • physics
  • book
  • education
  • energy
  • diagram

Details

Category
Document, form & report animations
Length
10.0 s (300 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
caption labels
Colour props
liquidColors desk paper ink accent
Mood
paper, 3d
Roles
subject

Use Textbook energy lab in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render textbook-energy-lab --props '{"caption":"Lift the flap to see the answer.","labels":["GRAVITY","MOTION","HEAT"],"liquidColors":["#8a4fe0","#3f8cf0","#f08a3a"],"desk":"#9db3a6","paper":"#f7f4ec","ink":"#3a3a40","accent":"#6b4fb0"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export textbook-energy-lab --as mp4 --props '{"caption":"Lift the flap to see the answer.","labels":["GRAVITY","MOTION","HEAT"],"liquidColors":["#8a4fe0","#3f8cf0","#f08a3a"],"desk":"#9db3a6","paper":"#f7f4ec","ink":"#3a3a40","accent":"#6b4fb0"}'

React / Next.js

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

<MotionPlayer
  motion="textbook-energy-lab"
  props={{
    caption: 'Lift the flap to see the answer.',
    labels: ['GRAVITY', 'MOTION', 'HEAT'],
    liquidColors: ['#8a4fe0', '#3f8cf0', '#f08a3a'],
    desk: '#9db3a6',
    paper: '#f7f4ec',
    ink: '#3a3a40',
    accent: '#6b4fb0',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="textbook-energy-lab"
  props='{"caption":"Lift the flap to see the answer.","labels":["GRAVITY","MOTION","HEAT"],"liquidColors":["#8a4fe0","#3f8cf0","#f08a3a"],"desk":"#9db3a6","paper":"#f7f4ec","ink":"#3a3a40","accent":"#6b4fb0"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "textbook-energy-lab",
      "props": {
        "caption": "Lift the flap to see the answer.",
        "labels": [
          "GRAVITY",
          "MOTION",
          "HEAT"
        ],
        "liquidColors": [
          "#8a4fe0",
          "#3f8cf0",
          "#f08a3a"
        ],
        "desk": "#9db3a6",
        "paper": "#f7f4ec",
        "ink": "#3a3a40",
        "accent": "#6b4fb0"
      }
    }
  ]
}

Textbook energy lab props

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

PropDefaultWhat it does
heading"Up and down"left-page title
formula"E = m g h"formula line under the heading
bodyLines["A ball high on a track stores energy","in its height. Let it go, and that store","dra…lines of body text on the left page
caption"Lift the flap to see the answer."handwritten note in the answer box
labels["GRAVITY","MOTION","HEAT"]three beaker labels (potential, kinetic, thermal)
liquidColors["#8a4fe0","#3f8cf0","#f08a3a"]three liquid colours
desk"#9db3a6"desk colour
paper"#f7f4ec"page colour
ink"#3a3a40"pencil line colour
accent"#6b4fb0"handwriting colour
releaseFrame70frame the ball is released
speed1rolling speed multiplier
friction0.0012energy lost to heat per frame (0 = none)
startAt0.06start position along the track, 0..1
formulaNote"E = PE + KE + heat"handwritten note under the pendulum diagram
figLabel"Fig. 1"figure label in the bottom corner of the right page

Notes & credits

Technique sources:

  • analysis/sheets/r3/v4.jpg