Opus Motion ★ Star on GitHub

Data · math-equation-solve

Math equation solve

A worked algebra solution on a chalkboard: each step is a new line, surviving terms fly down (across the equals sign when they swap sides), cancelled terms are struck through, new terms pop in, notes explain each move and the answer is boxed with a burst.

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

Math equation solve: three frames of the animated chart, start, middle and end
Math equation solve — start, middle and end of the 12.0-second motion.

What Math equation solve is for

Maths tutorials, homework-help shorts, algebra explainers, STEM course trailers and "solve it with me" reels — pass any list of equation steps as space-separated tokens and a note per step.

  • math
  • maths
  • algebra
  • equation
  • solve
  • steps
  • worked solution
  • chalkboard
  • school
  • education
  • tutorial
  • homework
  • stem
  • cancel
  • formula

Details

Category
Animated charts & data visualisation
Length
12.0 s (360 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
title
Colour props
background ink accent accent2 cancelColor
Mood
—
Roles
subject

Use Math equation solve in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render math-equation-solve --props '{"title":"Solve for x","background":"#17342D","ink":"#F4F1E8","accent":"#FFD166","accent2":"#7BDFF2","cancelColor":"#FF7A7A"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export math-equation-solve --as webm-alpha --props '{"title":"Solve for x","background":"#17342D","ink":"#F4F1E8","accent":"#FFD166","accent2":"#7BDFF2","cancelColor":"#FF7A7A"}'

React / Next.js

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

<MotionPlayer
  motion="math-equation-solve"
  props={{
    title: 'Solve for x',
    background: '#17342D',
    ink: '#F4F1E8',
    accent: '#FFD166',
    accent2: '#7BDFF2',
    cancelColor: '#FF7A7A',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="math-equation-solve"
  props='{"title":"Solve for x","background":"#17342D","ink":"#F4F1E8","accent":"#FFD166","accent2":"#7BDFF2","cancelColor":"#FF7A7A"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "math-equation-solve",
      "props": {
        "title": "Solve for x",
        "background": "#17342D",
        "ink": "#F4F1E8",
        "accent": "#FFD166",
        "accent2": "#7BDFF2",
        "cancelColor": "#FF7A7A"
      }
    }
  ]
}

Math equation solve props

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

PropDefaultWhat it does
steps["2x + 3 = 11","2x + 3 - 3 = 11 - 3","2x = 8","2x / 2 = 8 / 2","x = 4"]equation lines, one string per step; tokens are separated by spaces, e.g. "2x + 3 = 11" (- * / are shown as − × ÷)
notes["Start with the equation","Subtract 3 from both sides","Simplify","Divide both sides b…optional one-line explanation per step (same order as steps; empty strings are skipped)
title"Solve for x"heading above the board
background"#17342D"backdrop colour or 'transparent'
ink"#F4F1E8"numbers and general text colour
accent"#FFD166"variable (letter) colour
accent2"#7BDFF2"moving-term flash, notes and answer box colour
cancelColor"#FF7A7A"strike-through colour for terms that cancel
fontFamily""optional CSS font-family for the equations (empty = monospace; keep it monospaced so columns line up)
stepFrames58frames per step
startAt0frame the board starts
speed1playback speed multiplier

Notes & credits

Technique sources:

  • original (round 3)