Opus Motion ★ Star on GitHub

Camera · crash-zoom

Crash zoom

Snap punch-in on a point of interest: expo-out zoom, ghosted zoom blur, decaying shake, radial speed lines and a flash.

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

Crash zoom: three frames of the camera effect, start, middle and end
Crash zoom — start, middle and end of the 5.0-second motion.

What Crash zoom is for

Comedic or dramatic emphasis on a face, product, number or object in any image; reaction beats; "wait, what?" moments.

  • crash zoom
  • snap zoom
  • punch in
  • shake
  • speed lines
  • camera
  • emphasis
  • comedy

Details

Category
Camera moves & lens effects
Length
5.0 s (150 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
lineColor palette accent background
Image props
src
Mood
—
Roles
subject

Use Crash zoom in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render crash-zoom --props '{"lineColor":"#ffffff","palette":["#ff7a59","#6a4cff","#14b8a6","#ffd166"],"accent":"#ffd166","background":"#000000","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export crash-zoom --as mp4 --props '{"lineColor":"#ffffff","palette":["#ff7a59","#6a4cff","#14b8a6","#ffd166"],"accent":"#ffd166","background":"#000000","src":""}'

React / Next.js

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

<MotionPlayer
  motion="crash-zoom"
  props={{
    lineColor: '#ffffff',
    palette: ['#ff7a59', '#6a4cff', '#14b8a6', '#ffd166'],
    accent: '#ffd166',
    background: '#000000',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="crash-zoom"
  props='{"lineColor":"#ffffff","palette":["#ff7a59","#6a4cff","#14b8a6","#ffd166"],"accent":"#ffd166","background":"#000000","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "crash-zoom",
      "props": {
        "lineColor": "#ffffff",
        "palette": [
          "#ff7a59",
          "#6a4cff",
          "#14b8a6",
          "#ffd166"
        ],
        "accent": "#ffd166",
        "background": "#000000",
        "src": ""
      }
    }
  ]
}

Crash zoom props

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

PropDefaultWhat it does
src""public/ path or URL (empty = procedural scene)
hits[[36,2.1,0.5,0.4],[96,3.4,0.5,0.36]][[frame, zoom, x, y], ...] each punch-in; x,y = target point 0..1
snapFrames5frames each snap takes (3-6 = brutal)
shake14initial camera shake in u (0 = none)
shakeDecay7frames for the shake to decay
speedLinestrueradial manga speed lines on each hit
lineColor"#ffffff"speed line colour
flash0.35white flash strength on a hit (0 = off)
creep0.05slow push-in applied before the first hit (e.g. 0.05)
release24frames to ease back out after the last hit (0 = stay punched in)
releaseAfter30frames to wait after the last hit before releasing
palette["#ff7a59","#6a4cff","#14b8a6","#ffd166"]procedural scene colours
accent"#ffd166"procedural subject accent
background"#000000"base colour

Notes & credits

Technique sources:

  • camera-vocabulary: crash zoom / snap zoom