Opus Motion ★ Star on GitHub

Camera · dolly-zoom

Dolly zoom (vertigo)

Vertigo effect: the subject holds its size while the background stretches behind it, with a tightening vignette.

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

Dolly zoom (vertigo): three frames of the camera effect, start, middle and end
Dolly zoom (vertigo) — start, middle and end of the 4.0-second motion.

What Dolly zoom (vertigo) is for

A moment of dread, realisation or "oh no" on a portrait, product or place photo; thriller and true-crime beats; dramatic reveal punctuation.

  • dolly
  • zoom
  • vertigo
  • hitchcock
  • camera
  • perspective
  • dread
  • reveal

Details

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

Use Dolly zoom (vertigo) in Remotion, React or HTML

Remotion project

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

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

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

React / Next.js

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

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

Plain HTML / WordPress

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

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

Compose spec (multi-scene video)

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

Dolly zoom (vertigo) props

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

PropDefaultWhat it does
src""public/ path or URL of the scene/background (empty = procedural scene)
subjectSrc""optional transparent cut-out PNG kept at constant size (empty = feathered centre of src)
direction"in"in = background swells, out = background relaxes back
amount1.7final background scale (1.3 gentle, 2.2 extreme)
startAt0frame the move begins
hold14frames held still before the dolly
dollyFrames78length of the dolly
pingpongfalsedolly there and back
subjectSize0.34size of the kept centre region when only src is given (0..1)
feather0.45softness of that cut-out edge (0..1)
tension0.6vignette tightening as the dolly runs (0 = none)
palette["#ff7a59","#6a4cff","#14b8a6","#ffd166"]colours for the procedural scene
background"#000000"base colour behind the layers
accent"#ffd166"procedural subject accent

Notes & credits

Technique sources:

  • camera-vocabulary: dolly zoom / Hitchcock zoom