Effect #048 in our rendered series
Dolly zoom effect
The camera moves while the field of view changes the opposite way, so the subject keeps its size and the background stretches.
Rendered by us at 1920x1080 over a shot from Tears of Steel (Blender Foundation, CC-BY 3.0). Expand plays the full 1080p file.
Edit in Premiere, Resolve or After Effects? Jump to editor templates. Making many versions of the same video? Use the code route.
Make this effect with
Built and tested by us
Other ways, not tested by us
Use it in a real edit
The same dolly zoom on the warm three-shot indoors. Nothing in the composition changed except the footage file.
The composition plays your clip as a muted <video> layer under the graphics (the file plate.mp4 in the code below), so you swap the footage by replacing that file and rendering again. To use the graphics in an editor instead, switch the background off and render a transparent MOV (an H.264 MP4 cannot carry transparency):
npx hyperframes render . -o overlay.mov --format mov --fps 24 --variables '{"plate":false}'The routes in full
With Claude Code: the prompt we used
Rendered and tested by us in HyperFrames 0.8.10 on Nov 7, 2026.
Make a 5 second dolly zoom (vertigo) effect on a simple 3D-ish room-like generated scene: the camera moves toward the subject while the field of view widens so the subject stays the same size and the background stretches, then reverses, with the strength as a variable.
What changed since this prompt: the demo on this page is our second version, 5 seconds long, rebuilt on a shot from Tears of Steel with the same animation idea. The full composition below is the one we rendered; its build log lists every change.
Built by a Claude Code subagent (Sonnet) from the HyperFrames registry block camera-dolly-zoom, HyperFrames 0.8.10. Claude Code then checked the composition with hyperframes lint and hyperframes check before we rendered it.
What we had to correct (7 notes from the build log):
- 2026-11-06 07:31 lint run 1: 0 errors, 0 warnings. No fixes needed.
- Kept the registry solve: CSS perspective is set equal to the camera to subject distance every frame from a property setter on a driver object, so the z = 0 subject keeps its size while the layers behind it stretch. Scene is built only from CSS shapes: a large back wall with a doorway, five nested frames at different depths, and a simple figure as the subject.
- Fix before first lint: first draft centred the back wall at x = 480 instead of 960, which would have left an uncovered side at strength 3 dolly in. Re-centred the wall (22000 by 12400 px) so it covers the frame down to the minimum scale.
- Move runs 0.4 s to 2.3 s, reverses 2.6 s to 4.5 s, ends back at the start state for a clean loop. Strength is clamped 1.2 to 3.
- With plate false the room and background are removed and only the subject remains, so the dolly effect is not visible there (a limitation of the brief, stated here).
- hyperframes check: "Check passed". Contact sheet at 0.3, 1.2, 2.2, 3.0, 3.9 and 4.7 s: the figure keeps its size while the nested frames stretch and then relax; no clipping at the frame edge.
- v2 (7 Nov 2026): real footage from Tears of Steel, plates dz_bridge. Eight stacked copies of the footage with soft elliptical masks and scales that grow outward, which approximates a dolly zoom without a depth map. Out: surroundings swell; in: centre swells. Real edit on the warm three-shot was not checked frame by frame beyond the automatic frames.
With HyperFrames code
Rendered and tested by us in HyperFrames 0.8.10 on Nov 7, 2026.
npx hyperframes add camera-dolly-zoom
npx hyperframes render . -o out.mp4 --fps 24Settings you can change without rebuilding (pass them with --variables):
| Setting | Name | Type | Default |
|---|---|---|---|
| Strength (distance ratio) | strength | number | 2 |
| Direction | direction | enum | out |
| Show background | plate | boolean | true |
Our full composition (index.html, 5 KB)
<!doctype html>
<html lang="en" data-composition-variables='[{"id":"strength","type":"number","label":"Strength (distance ratio)","default":2,"min":1.2,"max":3,"step":0.1},{"id":"direction","type":"enum","label":"Direction","default":"out","options":[{"value":"out","label":"Out (background rushes in)"},{"value":"in","label":"In (background falls away)"}]},{"id":"plate","type":"boolean","label":"Show background","default":true}]'>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@600&display=block" rel="stylesheet" />
<script src="gsap.min.js"></script>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 1920px; height: 1080px; overflow: hidden; background: transparent; }
#root { position: relative; width: 100%; height: 100%; overflow: hidden; background: transparent; }
.vid { position: absolute; left:0; top:0; width:1920px; height:1080px; object-fit: cover; }
.dl { position: absolute; inset: 0; transform-origin: 800px 600px; }
.tag { position: absolute; left: 96px; top: 80px; z-index: 30; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 40px; letter-spacing: 0.04em; color: #fff; background: rgba(10,12,18,0.86); padding: 12px 28px; border-radius: 10px; }
.tag span { display: none; }
</style>
</head>
<body>
<div id="root" data-composition-id="main" data-start="0" data-duration="5" data-fps="24" data-width="1920" data-height="1080">
<div class="dl" id="l7"><video class="plate vid" src="plate.mp4" muted playsinline data-start="0" data-duration="5"></video></div>
<div class="dl" id="l6"><video class="plate vid" src="plate.mp4" muted playsinline data-start="0" data-duration="5"></video></div>
<div class="dl" id="l5"><video class="plate vid" src="plate.mp4" muted playsinline data-start="0" data-duration="5"></video></div>
<div class="dl" id="l4"><video class="plate vid" src="plate.mp4" muted playsinline data-start="0" data-duration="5"></video></div>
<div class="dl" id="l3"><video class="plate vid" src="plate.mp4" muted playsinline data-start="0" data-duration="5"></video></div>
<div class="dl" id="l2"><video class="plate vid" src="plate.mp4" muted playsinline data-start="0" data-duration="5"></video></div>
<div class="dl" id="l1"><video class="plate vid" src="plate.mp4" muted playsinline data-start="0" data-duration="5"></video></div>
<div class="dl" id="l0"><video class="plate vid" src="plate.mp4" muted playsinline data-start="0" data-duration="5"></video></div>
<div class="tag"><span id="tagO">Original</span><span id="tagD">With dolly zoom</span></div>
</div>
<script>
window.__timelines = window.__timelines || {};
(function () {
const v = window.__hyperframes.getVariables();
let k = Number(v.strength); if (!isFinite(k)) k = 2; k = Math.min(3, Math.max(1.2, k));
const dirIn = v.direction === "in";
if (!v.plate) document.querySelectorAll(".plate").forEach((e) => (e.style.display = "none"));
// dolly zoom on a flat shot: six stacked copies of the footage, soft elliptical masks, scales that grow smoothly outward
// (out: the surroundings swell while the centre holds; in: the centre swells while the surroundings hold)
const NL = 8, A = (k - 1) * 0.22;
for (let i = 0; i < NL - 1; i++) {
const f = 0.5 + 0.1 * i;
const m = "radial-gradient(ellipse " + Math.round(f * 1500) + "px " + Math.round(f * 900) + "px at 800px 600px, #000 70%, rgba(0,0,0,0) 100%)";
const el = document.getElementById("l" + i); el.style.webkitMaskImage = m; el.style.maskImage = m;
}
const drv = { _a: 0, get a() { return this._a; }, set a(x) {
this._a = x;
for (let i = 0; i < NL; i++) {
const w = Math.pow(i / (NL - 1), 1.5);
const sc = dirIn ? 1 + x * (1 - w) : 1 + x * w;
document.getElementById("l" + i).style.transform = "scale(" + sc.toFixed(4) + ")";
}
} };
const tl = gsap.timeline({ paused: true });
tl.set("#tagO", { display: "inline" }, 0);
tl.set("#tagO", { display: "none" }, 0.8);
tl.set("#tagD", { display: "inline" }, 0.8);
tl.fromTo(drv, { a: 0 }, { a: A, duration: 1.8, ease: "power2.inOut" }, 0.8);
tl.fromTo(drv, { a: A }, { a: 0, duration: 1.6, ease: "power2.inOut", immediateRender: false }, 2.9);
window.__timelines["main"] = tl;
})();
</script>
</body>
</html>
With Remotion
We have not built this effect in Remotion. If you use it, read its licence first: Individuals (personal or commercial use), organisations or teams with a total headcount of 3 or less, non-profits, and anyone evaluating Remotion before commercial use. A company does not qualify merely because it is unprofitable. Everyone not eligible for the Free License needs a Company License. Remotion licence FAQ, checked Nov 4, 2026.
In your editor: Premiere, Resolve, After Effects, CapCut
We have not reviewed an editor template for this effect yet.
Variations
The same composition rendered again with different settings. Nothing was rebuilt.
{"strength":1.5}{"strength":3,"direction":"out"}{"direction":"in","strength":2.5}Spec and test details
- Engine
- HyperFrames 0.8.10, GSAP 3.14.2 (local copy)
- Length and frame rate
- 5 seconds at 24 fps, rendered at 1920x1080
- Video files on this page
- H.264: 1920x1080 for Expand (4653.4 KB), 1280x720 in the page (1657.7 KB), 640x360 in galleries (407.3 KB), no audio
- Picture check
- The 1080p file scores VMAF 99.04 against our render master and keeps 96% of its edge detail (measured by us with FFmpeg libvmaf and OpenCV)
- Footage
- Thom and Celia talking on a canal bridge, trees and canal houses behind, static camera, daylight (Tears of Steel, 0:26)
- Tested in editors
- None yet
- Flash check
- Passed: at most 0 general and 0 red flashes in any second. automated approximation of WCAG 2.3.1 on a 96x54 grid, whole loop including the restart; not a certification.
- Licence
- Composition adapted by us from the HyperFrames registry (Apache-2.0); text fonts from Google Fonts under the SIL Open Font License.
- Last tested
- Nov 7, 2026
- Machine
- Laptop: AMD Ryzen 7 7735U (8 cores, 16 threads), 31 GB RAM, Windows 11 Home; CPU rendering
Technical details: render times and file sizes
- Render of the 5-second master: 96.6 s (2 render workers, on the laptop above).
- full.mp4: 4653.4 KB
- hero.mp4: 1657.7 KB
- hero.webp: 63.5 KB
- tile.mp4: 407.3 KB
- tile.webp: 22.9 KB
- real-edit.mp4: 1815.8 KB
- real-edit-full.mp4: 5188.2 KB
- real-edit.webp: 58.7 KB
- Variation "subtle": rendered in 91.7 s, 397.5 KB
- Variation "bold": rendered in 90.3 s, 437.1 KB
- Variation "in": rendered in 89.5 s, 400.6 KB
Credits
- Built from the HyperFrames registry block camera-dolly-zoom by HeyGen (Apache-2.0), adapted by us.
- Fonts from Google Fonts, under the SIL Open Font License.
- Footage: Tears of Steel, (c) Blender Foundation, mango.blender.org, licensed CC-BY 3.0. We cropped the shots to 16:9 and laid our graphics over them.
- Editor templates and other routes on this page belong to their creators, who are credited on each card.
Related effects and jobs
Page checked on Nov 4, 2026.



