
Match cut (shape continues)
@opus-motion-library/match-cut
From Opus Motion Library
A record button in an app screen becomes a sun in a sunrise scene at exactly the same position and size: the shape is held 3 frames across the cut (scaled 1 -> 1.6 first), then scene B opens through a clip-path that grows from that shape to the full frame while the sun drifts to its rest position.
Install
node cli/mgl.mjs add match-cut --to <your-project>/srcWhen to use
- Good for
- Premium launch films, showreels and one-shot explainers: copy the rect/clip-path maths into any scene change so a button, screen or circle continues as a shape in the next scene (pairs with cursor-driver and ui-shape-morph).
Specs
- Length
- 120f · 4s
- Length type
- Fixed
- FPS
- 30
- Style
- nature
- License
- MIT
Props (14)
shapestring= "circle"'circle' | 'rounded' | 'rect'
fromobject= {"x":50,"y":56,"w":300,"h":300}matched shape in scene A: {x,y in % of frame centre, w,h in u}
toobject= {"x":50,"y":40,"w":340,"h":340}where the shape comes to rest in scene B
cutAtnumber= 46frame of the hard cut
holdFramesnumber= 3frames the matched shape is held across the cut (2-4)
expandFramesnumber= 26frames for B to open to full frame
scaleThroughnumber= 1.6scale of the matched shape just before the cut (1 = none)
titleAstring= "Ready when you are"headline in scene A
titleBstring= "A new day"headline in scene B
imageBstring= ""optional public image path for scene B (replaces the procedural sunrise)
colorAstring= "#ECE9E3"scene A background
colorBstring= "#FFB27A"scene B sky top colour
shapeAstring= "#1B1B1F"matched shape colour in A
shapeBstring= "#FFE3A8"matched shape colour in B