UI · ui-shape-morph
UI shape morph (one shape, many states)
One rounded rectangle never cuts: it grows from a button into a loader, a check, a pill, a player, a slider, a toggle, tabs, a chart, a search box and a toast and back, one change per beat on spring physics (leading edges stiffer than trailing edges so it stretches), content cross-blurring inside while the camera keeps the active state framed; the last frame equals the first.
A free, MIT-licensed UI animation from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

What UI shape morph (one shape, many states) is for
Product promos, app-store previews, onboarding heroes and "what our app does" loops: edit the `states` table (kind, label, size, radius, colour), set `accent` and `beatFrames` to your music; pairs with cursor-driver.
Details
- Category
- UI & product mockup animations
- Length
- 6.8 s (205 frames at 30 fps)
- Formats
- 16:9, 1:1, 9:16
- Weight
- light
- Transparent overlay
- no
- Seamless loop
- no
- Text props
- —
- Colour props
accentbackgroundink- Mood
- hud, ui
- Roles
- subject
Use UI shape morph (one shape, many states) in Remotion, React or HTML
Remotion project
# copy this motion into your Remotion project
node cli/mgl.mjs add ui-shape-morph --to ../my-app/src
# render an mp4 (run in the library folder)
node cli/mgl.mjs render ui-shape-morph --props '{"accent":"#4F5BD5","background":"#EDEBE7","ink":"#17171B"}'
# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export ui-shape-morph --as mp4 --props '{"accent":"#4F5BD5","background":"#EDEBE7","ink":"#17171B"}'React / Next.js
import {MotionPlayer} from 'opus-motion-library/web';
<MotionPlayer
motion="ui-shape-morph"
props={{accent: '#4F5BD5', background: '#EDEBE7', ink: '#17171B'}}
playOnView
loop="auto"
/>Plain HTML / WordPress
<script src="opus-motion.element.js" defer></script>
<opus-motion motion="ui-shape-morph"
props='{"accent":"#4F5BD5","background":"#EDEBE7","ink":"#17171B"}'>
</opus-motion>Compose spec (multi-scene video)
{
"width": 1920,
"height": 1080,
"fps": 30,
"scenes": [
{
"motion": "ui-shape-morph",
"props": {
"accent": "#4F5BD5",
"background": "#EDEBE7",
"ink": "#17171B"
}
}
]
}UI shape morph (one shape, many states) props
9 parameters — change any of them to make the motion yours.
| Prop | Default | What it does |
|---|---|---|
states | [{"kind":"button","label":"Get started","width":300,"height":96,"radius":48,"color":"#4… | [{kind:'button'|'loader'|'check'|'pill'|'player'|'slider'|'toggle'|'tabs'|'chart'|'search'|'toast', label, width, height, radius (u), color, content?, action? (toast button word, default 'Undo')}] — end with a copy of the first state to loop |
accent | "#4F5BD5" | accent used inside sliders, charts, search caret |
background | "#EDEBE7" | canvas colour (warm grey or near-black) |
ink | "#17171B" | text colour on light states |
fontFamily | "" | UI font family (empty = Inter) |
beatFrames | 15 | frames per state change (15 = 120 BPM) |
startFrame | 10 | frame of the first change |
frameFill | 0.6 | fraction of the frame the active state fills (0.6) |
cursor | true | show a small cursor that operates each state |
Related motions

Empty state illustration
"Nothing here yet" screens, no-results and empty-inbox states, onboarding prompts, 404-style pages, and app demos that need a calm,…
empty-state-illustration
Loader / spinner set
Loading, buffering, "generating…" and splash screens for apps and websites; pick the variant that matches the brand, or show all six as a…
loader-spinner-set
Ring to masonry gallery switch
Showcase and portfolio reveals, app tours ("switch between views"), template or asset library intros, "browse everything" beats.
masonry-gallery-switch
Toast stack loop
Product demos of feedback and notifications, a UX-patterns explainer, loading/err states for websites, or an overlay that makes a…
toast-stack-loop
Device mockup (phone, tablet, laptop, watch)
App launches, feature tours, testimonials, store previews: makes a host screenshot look shipped. Pass `src` (and `src2` for the flip side)…
device-mockup
Glass UI cards
AI-assistant demos, app feature films and website heroes that want a translucent, premium UI look.
glass-ui-cards
Notes & credits
Technique sources:
- prompt-corpus: ui-shape-morph (22 cases)
- awesome-opus5-5-videos prompts (MIT) — technique only