Opus Motion ★ Star on GitHub

Shapes · atom-model

Atom / molecule model

Bohr atom with a jiggling nucleus of shaded protons and neutrons and electron shells on tilted 3D orbit rings (60 / 0 / -60 deg) that pass behind and in front, electrons with glowing trails; or a rotating ball-and-stick molecule (water, methane, CO2, ammonia, benzene) with CPK colours.

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

Atom / molecule model: three frames of the shape animation, start, middle and end
Atom / molecule model — start, middle and end of the 6.0-second motion.

What Atom / molecule model is for

Chemistry / physics explainers, end stage of a scale-dive, science and materials brands.

  • atom
  • bohr
  • electron
  • nucleus
  • proton
  • neutron
  • orbit
  • molecule
  • chemistry
  • physics
  • science
  • ball and stick
  • water
  • methane
  • education
  • explainer
  • quantum

Details

Category
Shape & geometric animations
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
protonColor neutronColor electronColor orbitColor background
Mood
3d, nature, hud
Roles
subject

Use Atom / molecule model in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render atom-model --props '{"title":"","caption":"","protonColor":"#F0506E","neutronColor":"#5B8CFF","electronColor":"#5CE1E6","orbitColor":"#9FB4E8","background":"#0B1226"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export atom-model --as mp4 --props '{"title":"","caption":"","protonColor":"#F0506E","neutronColor":"#5B8CFF","electronColor":"#5CE1E6","orbitColor":"#9FB4E8","background":"#0B1226"}'

React / Next.js

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

<MotionPlayer
  motion="atom-model"
  props={{
    title: '',
    caption: '',
    protonColor: '#F0506E',
    neutronColor: '#5B8CFF',
    electronColor: '#5CE1E6',
    orbitColor: '#9FB4E8',
    background: '#0B1226',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="atom-model"
  props='{"title":"","caption":"","protonColor":"#F0506E","neutronColor":"#5B8CFF","electronColor":"#5CE1E6","orbitColor":"#9FB4E8","background":"#0B1226"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "atom-model",
      "props": {
        "title": "",
        "caption": "",
        "protonColor": "#F0506E",
        "neutronColor": "#5B8CFF",
        "electronColor": "#5CE1E6",
        "orbitColor": "#9FB4E8",
        "background": "#0B1226"
      }
    }
  ]
}

Atom / molecule model props

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

PropDefaultWhat it does
kind"bohr"'bohr' (nucleus + orbits) | 'molecule' (ball and stick)
element"C"bohr: H He Li C N O Ne Na Si Cl Fe (sets nucleus + shells)
shells[]bohr: electrons per shell, overrides the element, e.g. [2,8,1]
molecule"water"molecule preset: water | methane | co2 | ammonia | benzene
atoms[]custom molecule atoms [{el,x,y,z}] (units ~ bond lengths)
bonds[]custom molecule bonds [[i,j],...]
title""caption title (default: element / molecule name)
caption""caption line (default: particle counts)
rotation22scene rotation in deg / s
electronPeriod48frames per orbit of the innermost shell (30-60)
protonColor"#F0506E"proton colour (also the nucleus glow)
neutronColor"#5B8CFF"neutron colour
electronColor"#5CE1E6"electron + trail colour
orbitColor"#9FB4E8"orbit ring colour
background"#0B1226"background colour
glow1electron / nucleus glow strength 0-1.5

Notes & credits

Technique sources:

  • prompt-corpus research: atom-model (21 cases, ideas only; original implementation)