Opus Motion ★ Star on GitHub

Shapes · shape-morph-chain

Shape morph chain

A solid flat icon (mug, sun, paper plane, pin, heart, star) morphs into the next through a circle, rotating and stretching on the way; its sub-parts (steam, rays, wing folds, highlights) morph in lockstep through constant-count slots, and the field colour changes with each shape. Any SVG outline can be fed in.

A free, MIT-licensed shape animation from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Shape morph chain: three frames of the shape animation, start, middle and end
Shape morph chain — start, middle and end of the 10.0-second motion.

What Shape morph chain is for

Product-to-benefit explainers, logo reveals and icon sequences for slides: the core visual-storytelling grammar of one shape becoming the next.

  • morph
  • shape morph
  • icons
  • flat vector
  • transform
  • storytelling
  • path interpolation
  • logo reveal
  • explainer
  • sequence

Details

Category
Shape & geometric animations
Length
10.0 s (300 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
ink shadow
Mood
paper, nature
Roles
subject

Use Shape morph chain in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add shape-morph-chain --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render shape-morph-chain --props '{"ink":"#1b1b2f","shadow":"#000000"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export shape-morph-chain --as mp4 --props '{"ink":"#1b1b2f","shadow":"#000000"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="shape-morph-chain"
  props={{ink: '#1b1b2f', shadow: '#000000'}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="shape-morph-chain"
  props='{"ink":"#1b1b2f","shadow":"#000000"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "shape-morph-chain",
      "props": {
        "ink": "#1b1b2f",
        "shadow": "#000000"
      }
    }
  ]
}

Shape morph chain props

11 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
shapes[{"name":"Mug","fill":"#FF7A59","partFill":"#FFB199","bg":"#FFE9D6","body":"M-60 -30L40…shapes[{name, fill, partFill, bg, body: svg path d, hole?: path d, parts?: path d[] (max 8)}] in a ±100 box
via"circle"'circle' | 'capsule' | 'none': the shape every outline passes through
holdFrames28frames each icon rests
morphFrames22frames of each morph (halves ~ 0.35 s at 30 fps)
startAt8frame the first morph cycle starts
squash0.13stretch along travel at mid-morph (0.12-0.14)
rotate22degrees of twist at mid-morph (18-26)
points160outline resolution of the body (more = smoother)
showLabelstrueshow the icon name and progress dots
ink"#1b1b2f"label and progress-dot colour (blended 50 % with the icon colour)
shadow"#000000"ground shadow colour

Notes & credits

Technique sources:

  • mg-styles-15 demos/08-morph/index.html (sampleD, resamplePoly, bestShift, alignTo) (MIT)