FX · glass-crack-mend
Glass crack and mend (re-leading)
A leaded stained-glass pane takes a blow: nine white-hot jagged cracks race out from the impact in a quarter second with a flash and a 2-frame shake, then groups of glass slide along the leads into a new arrangement, one group per beat with a weld spark, and the cracks turn into dark mending lead lines.
A free, MIT-licensed visual effect from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

What Glass crack and mend (re-leading) is for
Turning points: reinvention, injury and recovery, a restored building, a before/after pivot; works over any image via `src`.
Details
- Category
- Visual effects & particles
- 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
- —
- Colour props
colorsleadbackground- Image props
src- Mood
- night
- Roles
- subject
Use Glass crack and mend (re-leading) in Remotion, React or HTML
Remotion project
# copy this motion into your Remotion project
node cli/mgl.mjs add glass-crack-mend --to ../my-app/src
# render an mp4 (run in the library folder)
node cli/mgl.mjs render glass-crack-mend --props '{"colors":["#1f5f9e","#b3262f","#d9a22b","#2e7d4f","#6b3a8c","#e0763a","#2aa2a8"],"lead":"#1d1f23","background":"#14121a","src":""}'
# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export glass-crack-mend --as mp4 --props '{"colors":["#1f5f9e","#b3262f","#d9a22b","#2e7d4f","#6b3a8c","#e0763a","#2aa2a8"],"lead":"#1d1f23","background":"#14121a","src":""}'React / Next.js
import {MotionPlayer} from 'opus-motion-library/web';
<MotionPlayer
motion="glass-crack-mend"
props={{
colors: [
'#1f5f9e',
'#b3262f',
'#d9a22b',
'#2e7d4f',
'#6b3a8c',
'#e0763a',
'#2aa2a8',
],
lead: '#1d1f23',
background: '#14121a',
src: '',
}}
playOnView
loop="auto"
/>Plain HTML / WordPress
<script src="opus-motion.element.js" defer></script>
<opus-motion motion="glass-crack-mend"
props='{"colors":["#1f5f9e","#b3262f","#d9a22b","#2e7d4f","#6b3a8c","#e0763a","#2aa2a8"],"lead":"#1d1f23","background":"#14121a","src":""}'>
</opus-motion>Compose spec (multi-scene video)
{
"width": 1920,
"height": 1080,
"fps": 30,
"scenes": [
{
"motion": "glass-crack-mend",
"props": {
"colors": [
"#1f5f9e",
"#b3262f",
"#d9a22b",
"#2e7d4f",
"#6b3a8c",
"#e0763a",
"#2aa2a8"
],
"lead": "#1d1f23",
"background": "#14121a",
"src": ""
}
}
]
}Glass crack and mend (re-leading) props
14 parameters — change any of them to make the motion yours.
| Prop | Default | What it does |
|---|---|---|
impact | {"x":0.46,"y":0.42} | impact point as 0..1 of the window |
cols | 6 | glass columns |
rows | 4 | glass rows |
cracks | 9 | number of primary cracks |
crackAt | 30 | frame of the blow |
groupAt | [58,76,94,112] | start frame of each re-lead group (one slide per entry) |
slideFrames | 15 | frames each slide takes |
mend | true | turn the cracks into lead lines |
flash | 0.85 | white flash strength 0..1 |
colors | ["#1f5f9e","#b3262f","#d9a22b","#2e7d4f","#6b3a8c","#e0763a","#2aa2a8"] | jewel glass colours |
lead | "#1d1f23" | lead came colour |
background | "#14121a" | wall behind the window |
src | "" | optional image shown through the glass (public path); empty = coloured glass |
seed | 5 | seed for colours and cracks |
Related motions

Data view flash
Rhythmic "under the hood / what the AI sees" accents; hiding hard cuts on music beats.
data-view-flash
Freeze-frame brackets
"Wait — look at this" moments in reaction videos, tutorials, sports, news and explainers.
freeze-frame-brackets
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
Smoke puffs
Broken machines, steam, thinking, engines; with flash: cannon / gun / launch / explosion beats.
smoke-puffs
Sparkle burst
Success / fixed / done accents, comic fights and replacements, celebration beats.
sparkle-burst
Backlit paper cut-out (holes are light)
Night reveals, "an idea shines through", lantern / Diwali / Lunar New Year moments, a word or emblem projected as light; overlay over dark…
backlit-cutout
Notes & credits
Technique sources:
- lemo-opuscar styles/stained-glass demo/story.js (CRACKS, WELDS, crackAfter) + STYLE.md (MIT, LemoLab)