Opus Motion ★ Star on GitHub

Data · flame-test-colors

Flame test colours

A Bunsen-style burner on a lab bench: a wire loop dips into the flame, which turns crimson, yellow, lilac, green, red and orange for Li, Na, K, Cu, Sr and Ca with sparks, a label pill and the matching sample bottle lighting up.

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

Flame test colours: three frames of the animated chart, start, middle and end
Flame test colours — start, middle and end of the 13.0-second motion.

What Flame test colours is for

Chemistry lessons on flame tests and emission, "why fireworks have colours", element-by-element reveals, school science channels.

  • flame
  • chemistry
  • bunsen burner
  • lab
  • element
  • metal
  • colour
  • science
  • education
  • sparks
  • fireworks
  • periodic table

Details

Category
Animated charts & data visualisation
Length
13.0 s (390 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
title subtitle
Colour props
background benchColor baseFlame inkColor
Mood
hud, playful, night
Roles
subject

Use Flame test colours in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render flame-test-colors --props '{"title":"Flame test","subtitle":"Each metal burns its own colour","background":"#0f1b2b","benchColor":"#8a5a38","baseFlame":"#6ea8ff","inkColor":"#e9f1ff"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export flame-test-colors --as mp4 --props '{"title":"Flame test","subtitle":"Each metal burns its own colour","background":"#0f1b2b","benchColor":"#8a5a38","baseFlame":"#6ea8ff","inkColor":"#e9f1ff"}'

React / Next.js

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

<MotionPlayer
  motion="flame-test-colors"
  props={{
    title: 'Flame test',
    subtitle: 'Each metal burns its own colour',
    background: '#0f1b2b',
    benchColor: '#8a5a38',
    baseFlame: '#6ea8ff',
    inkColor: '#e9f1ff',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="flame-test-colors"
  props='{"title":"Flame test","subtitle":"Each metal burns its own colour","background":"#0f1b2b","benchColor":"#8a5a38","baseFlame":"#6ea8ff","inkColor":"#e9f1ff"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "flame-test-colors",
      "props": {
        "title": "Flame test",
        "subtitle": "Each metal burns its own colour",
        "background": "#0f1b2b",
        "benchColor": "#8a5a38",
        "baseFlame": "#6ea8ff",
        "inkColor": "#e9f1ff"
      }
    }
  ]
}

Flame test colours props

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

PropDefaultWhat it does
title"Flame test"headline (top-left)
subtitle"Each metal burns its own colour"mono sub-line
elements[{"symbol":"Li","name":"Lithium","color":"#ff2f5a","colorName":"Crimson"},{"symbol":"Na…steps [{symbol,name,color (flame colour),colorName?}] one per dip
background"#0f1b2b"wall colour
benchColor"#8a5a38"bench wood colour
baseFlame"#6ea8ff"flame colour before the first dip
inkColor"#e9f1ff"text colour
framesPer58frames per element (30 fps)
startFrame22frame of the first dip
sparks26spark particles per dip
seed3spark seed

Notes & credits

Technique sources:

  • analysis/sheets/r3/v1 (strontium flame test with wire loop)