Data · neural-net-layers
Neural net layers
Columns of neuron circles joined by weighted connections: an activation wave flows layer by layer as glowing pulses (blue to yellow), line widths show the weights, and an output bar chart (softmax) updates; it repeats with fresh inputs.
A free, MIT-licensed animated chart from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

What Neural net layers is for
AI / machine-learning explainers, ML courses, "how the model decides" beats, product AI-feature launch videos.
Details
- Category
- Animated charts & data visualisation
- Length
- 8.0 s (240 frames at 30 fps)
- Formats
- 16:9, 1:1, 9:16
- Weight
- light
- Transparent overlay
- no
- Seamless loop
- no
- Text props
labelstitlesubtitle- Colour props
backgroundinkramppositivenegative- Mood
- hud
- Roles
- subject
Use Neural net layers in Remotion, React or HTML
Remotion project
# copy this motion into your Remotion project
node cli/mgl.mjs add neural-net-layers --to ../my-app/src
# render an mp4 (run in the library folder)
node cli/mgl.mjs render neural-net-layers --props '{"labels":["cat","dog","bird","fish"],"title":"How a network decides","subtitle":"forward pass · weights · activations","background":"#0B1020","ink":"#DCE4FF","ramp":["#2B5BFF","#2FD0E0","#F7E15A"],"positive":"#5C8DFF","negative":"#FF9A4A"}'
# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export neural-net-layers --as mp4 --props '{"labels":["cat","dog","bird","fish"],"title":"How a network decides","subtitle":"forward pass · weights · activations","background":"#0B1020","ink":"#DCE4FF","ramp":["#2B5BFF","#2FD0E0","#F7E15A"],"positive":"#5C8DFF","negative":"#FF9A4A"}'React / Next.js
import {MotionPlayer} from 'opus-motion-library/web';
<MotionPlayer
motion="neural-net-layers"
props={{
labels: ['cat', 'dog', 'bird', 'fish'],
title: 'How a network decides',
subtitle: 'forward pass · weights · activations',
background: '#0B1020',
ink: '#DCE4FF',
ramp: ['#2B5BFF', '#2FD0E0', '#F7E15A'],
positive: '#5C8DFF',
negative: '#FF9A4A',
}}
playOnView
loop="auto"
/>Plain HTML / WordPress
<script src="opus-motion.element.js" defer></script>
<opus-motion motion="neural-net-layers"
props='{"labels":["cat","dog","bird","fish"],"title":"How a network decides","subtitle":"forward pass · weights · activations","background":"#0B1020","ink":"#DCE4FF","ramp":["#2B5BFF","#2FD0E0","#F7E15A"],"positive":"#5C8DFF","negative":"#FF9A4A"}'>
</opus-motion>Compose spec (multi-scene video)
{
"width": 1920,
"height": 1080,
"fps": 30,
"scenes": [
{
"motion": "neural-net-layers",
"props": {
"labels": [
"cat",
"dog",
"bird",
"fish"
],
"title": "How a network decides",
"subtitle": "forward pass · weights · activations",
"background": "#0B1020",
"ink": "#DCE4FF",
"ramp": [
"#2B5BFF",
"#2FD0E0",
"#F7E15A"
],
"positive": "#5C8DFF",
"negative": "#FF9A4A"
}
}
]
}Neural net layers props
15 parameters — change any of them to make the motion yours.
| Prop | Default | What it does |
|---|---|---|
layers | [5,7,7,4] | neurons per layer, e.g. [5,7,7,4] (2-7 layers, up to 14 each); the last is the output |
inputs | [] | optional input values 0..1 for the first pass (empty = seeded) |
labels | ["cat","dog","bird","fish"] | output class names (bar chart rows) |
title | "How a network decides" | title text |
subtitle | "forward pass · weights · activations" | small mono caption under the title |
cycle | 80 | frames per forward pass (a new input is fed each pass) |
travel | 12 | frames the activation takes to cross one layer (8-12) |
showWeights | true | line thickness + hue show each weight (false = uniform lines) |
seed | 7 | seed for weights and inputs |
background | "#0B1020" | background colour |
ink | "#DCE4FF" | text / outline colour |
ramp | ["#2B5BFF","#2FD0E0","#F7E15A"] | activation colour ramp (low -> high), 2-4 colours |
positive | "#5C8DFF" | positive-weight connection colour |
negative | "#FF9A4A" | negative-weight connection colour |
outputLabel | "OUTPUT · SOFTMAX" | small caption above the output bars |
Related motions

Isotype count
Stats that feel physical — users, litres, votes, homes — for explainers, reports and pitch decks.
isotype-count
Node network
Network effects, communities, knowledge graphs, AI agents, social-proof and "everything connects" beats.
node-network
Token pipeline
Training / build / pipeline explainers ("your data goes in…"), product origin stories, "tokens in, model out" moments.
token-pipeline
Isometric bar-chart staircase
Metric stories (declines, rankings, progress through steps) as a friendly looping hero animation.
iso-bar-chart
Bar chart race
Rankings over time: market share by year, top products by quarter, followers by month, league tables, "who is winning" stories. Give the…
bar-race
Bubble scatter grow
Three-variable comparisons: markets by size, growth and margin, countries, products, campaigns, startups. Pass points as [{label, x, y,…
bubble-scatter-grow
Notes & credits
Technique sources:
- prompt-corpus: awesome-opus5-5-videos (MIT) — neural network explainers (9 cases), original implementation