FX · physics-pile
Physics pile (falling, stacking shapes)
Colourful circles, rounded boxes and triangles (or letter tiles from a word) drop in one after another, bounce, tumble, stack and settle in a box, bowl or on the floor; a deterministic pre-simulated 2D rigid-body sim at 120 Hz sampled per frame, with small impact marks and exported collision frames for sound effects.
A free, MIT-licensed visual effect from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

What Physics pile (falling, stacking shapes) is for
Playful product demos, logos or words that fall into a heap, music-from-collisions, data drops (one body per item), toy / game stories.
Details
- Category
- Visual effects & particles
- Length
- 7.0 s (210 frames at 30 fps)
- Formats
- 16:9, 1:1, 9:16
- Weight
- light
- Transparent overlay
- no
- Seamless loop
- no
- Text props
text- Colour props
colorsbackgroundink- Mood
- hud, playful
- Roles
- subject
Use Physics pile (falling, stacking shapes) in Remotion, React or HTML
Remotion project
# copy this motion into your Remotion project
node cli/mgl.mjs add physics-pile --to ../my-app/src
# render an mp4 (run in the library folder)
node cli/mgl.mjs render physics-pile --props '{"text":"","colors":["#FF6B4A","#FFC145","#3DD6A3","#4D8BFF","#B26BFF","#FF7EB6"],"background":"#F3EEE4","ink":"#2A2622"}'
# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export physics-pile --as mp4 --props '{"text":"","colors":["#FF6B4A","#FFC145","#3DD6A3","#4D8BFF","#B26BFF","#FF7EB6"],"background":"#F3EEE4","ink":"#2A2622"}'React / Next.js
import {MotionPlayer} from 'opus-motion-library/web';
<MotionPlayer
motion="physics-pile"
props={{
text: '',
colors: ['#FF6B4A', '#FFC145', '#3DD6A3', '#4D8BFF', '#B26BFF', '#FF7EB6'],
background: '#F3EEE4',
ink: '#2A2622',
}}
playOnView
loop="auto"
/>Plain HTML / WordPress
<script src="opus-motion.element.js" defer></script>
<opus-motion motion="physics-pile"
props='{"text":"","colors":["#FF6B4A","#FFC145","#3DD6A3","#4D8BFF","#B26BFF","#FF7EB6"],"background":"#F3EEE4","ink":"#2A2622"}'>
</opus-motion>Compose spec (multi-scene video)
{
"width": 1920,
"height": 1080,
"fps": 30,
"scenes": [
{
"motion": "physics-pile",
"props": {
"text": "",
"colors": [
"#FF6B4A",
"#FFC145",
"#3DD6A3",
"#4D8BFF",
"#B26BFF",
"#FF7EB6"
],
"background": "#F3EEE4",
"ink": "#2A2622"
}
}
]
}Physics pile (falling, stacking shapes) props
14 parameters — change any of them to make the motion yours.
| Prop | Default | What it does |
|---|---|---|
count | 26 | number of bodies (ignored when text is set) |
shapes | ["circle","box","tri"] | mix of 'circle' | 'box' | 'tri' |
text | "" | letters that fall as tiles instead of shapes (e.g. a brand name) |
size | 112 | body size in u (1u = 1px at 1080 on the short side) |
container | "box" | 'box' (walls + floor) | 'bowl' (slanted) | 'floor' |
restitution | 0.38 | bounciness 0.2-0.5 |
friction | 0.55 | surface friction 0-1 |
spawnEvery | 3 | frames between spawns |
startFrame | 6 | frame of the first spawn |
colors | ["#FF6B4A","#FFC145","#3DD6A3","#4D8BFF","#B26BFF","#FF7EB6"] | body colours, cycled |
background | "#F3EEE4" | background colour |
ink | "#2A2622" | wall / impact / letter colour |
impacts | true | draw small impact bursts at hard collisions |
seed | 5 | randomness seed |
Related motions

Brick collapse physics
Failure / pivot beats, "break it to rebuild it", playful destruction before a rebuild.
brick-collapse-physics
Per-letter wave
Playful titles, loading and waiting states, "hello" greetings, party / music / kids content, website hero words, looping caption accents;…
per-letter-wave
Bouncing ball (squash, anticipation, crack, hop)
Explaining physics / animation principles, playful logo or mascot drops, "charging then launch" beats, heavy-impact emphasis.
bouncing-ball
Drop splash crown
Drink, food and cosmetics ads, logo openers, "drop" product launches and loader hits.
drop-splash-crown
Impact frame (flash, shake, punch)
Beat drops, fight and comedy shorts, stat slams, game trailers. Set `scene: false` and `background: "transparent"` to lay the flash +…
impact-frame
Last object drop (engraved brass puck)
Totals, ratios and "target met" endings for data films; the one heavy object that closes the argument.
last-object-drop
Notes & credits
Technique sources:
- prompt-corpus research: physics-pile (18 cases, ideas only; original implementation)