Opus Motion ★ Star on GitHub

FX · mix

Mix (layer motions together)

Stacks any motions in one frame: backdrop + subject + text + accent, each with its own timing, opacity and blend mode. Per-layer extras: knock-out halo, beat breathe (squash/stretch on the beat) and stop-motion stepping / boil.

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

Mix (layer motions together): three frames of the visual effect, start, middle and end
Mix (layer motions together) — start, middle and end of the 6.0-second motion.

What Mix (layer motions together) is for

Building a richer shot out of several motions at once (e.g. aurora sky + neon sign + embers, or a photo look + callouts + captions).

  • mix
  • layers
  • combine
  • composite
  • halo
  • knockout
  • beat
  • breathe
  • stop-motion
  • boil
  • squash
  • stretch

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
background
Mood
dark
Roles
mix

Use Mix (layer motions together) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render mix --props '{"background":"#05070d"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export mix --as mp4 --props '{"background":"#05070d"}'

React / Next.js

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

<MotionPlayer
  motion="mix"
  props={{background: '#05070d'}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="mix"
  props='{"background":"#05070d"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "mix",
      "props": {
        "background": "#05070d"
      }
    }
  ]
}

Mix (layer motions together) props

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

PropDefaultWhat it does
background"#05070d"colour under all layers
layers[{"motion":"aurora","props":{"pixelSize":0}},{"motion":"blur-in-title","from":24,"props…[{motion, props?, from?, duration?, offset?, opacity?, blend?, scale?, x?, y?, style?, halo?, breathe?, stepFps?, jitterPx?, jitterDeg?, boilFps?}] bottom to top. Extras: halo {size px, color, stamps} knock-out rim; breathe {amp 0.06, bpm | beatFrames, phase, onTwos, pivot bottom|center|top, peak [{from,to,mult}], freeze [{from,to}]} squash/stretch on the beat; stepFps (quantise the layer to N fps, e.g. 12), jitterPx / jitterDeg (seeded per-step wobble), boilFps (boil clock)

Notes & credits

Technique sources:

  • library