Pan, Tilt, Push-in and Truck
Replay six camera moves on the same scene and see why a truck shows parallax but a pan does not.
AI prompt
Slow truck right past a lone wooden house in a misty field, camera sliding sideways at walking speed, foreground reeds passing quickly while far hills barely move, strong parallax between layers, soft morning light, 5 second shot, steady handheld-free motion, cinematic realism. Move variants: pan right (camera turns on a tripod, no parallax), tilt up (camera angles upward from the ground to the sky), slow push-in (camera moves toward the house, edges expand), orbit left (camera circles the house keeping it centred, background rotates). Negative: shake, zoom instead of move, jump cuts, warping, text.About this pattern
Definition
Camera movement changes the view over time. A pan turns the camera left or right, a tilt up or down, a push-in moves it forward, a pull-out backward, a truck slides it sideways and an orbit circles the subject.
When to use it
- Pan and tilt rotate the view from one place, so near and far objects shift together. Truck, push-in and orbit move the camera, so near objects shift more than far ones (parallax).
- Use push-in for focus and emotion, pull-out to reveal, orbit to show a subject in space.
- Say the speed too: slow push-in, whip pan, steady orbit.
What the controls do
- Six buttons replay a move; the label states how it behaves.
Motion & timing
- Each move lasts 1.6 seconds with ease-in-out.
- Reduced motion: the scene jumps to the end state without travelling.
Tips & variations
- Simple moves read best in short 3 to 5 second clips.
- In prompts, describe one move per clip.
Code of this live preview
<div class="bx"><div class="vp"><div class="cam" id="cam"><i class="ly sky"></i><i class="ly far" style="--d:.3"></i><i class="ly mid" style="--d:.65"></i><i class="ly near" style="--d:1"></i></div></div>
<div class="pre" id="pre"><button data-m="pan">Pan</button><button data-m="tilt">Tilt</button><button data-m="push">Push in</button><button data-m="pull">Pull out</button><button data-m="truck">Truck</button><button data-m="orbit">Orbit</button></div><p class="out" id="out" aria-live="polite">Pick a move to replay it.</p></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
.bx{width:min(300px,100%);display:grid;gap:8px}
.vp{height:140px;border-radius:12px;overflow:hidden;background:#cfd8e3;perspective:380px;position:relative}
.cam{position:absolute;inset:0;transform-style:preserve-3d;transform-origin:50% 60%}
.ly{position:absolute;display:block;left:-60px;right:-60px;transform:translateX(calc(var(--tx,0) * var(--d,0) * 1px))}
.sky{top:0;bottom:50%;background:linear-gradient(#a9c2d8,#eaf0f2)}
.far{bottom:44px;height:60px;background:#8aa5a0;clip-path:polygon(0 100%,0 50%,25% 10%,50% 50%,75% 5%,100% 45%,100% 100%)}
.mid{bottom:20px;height:50px;background:#a9a45f;clip-path:polygon(0 100%,0 50%,30% 15%,60% 45%,100% 10%,100% 100%)}
.near{bottom:-6px;height:44px;background:#6b5a3a;clip-path:polygon(0 100%,0 40%,10% 5%,20% 40%,35% 0,50% 45%,70% 10%,85% 40%,100% 0,100% 100%)}
.pre{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.pre button{height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:11.5px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
@media (prefers-reduced-motion:reduce){.cam,.ly{transition:none!important}}const cam=document.getElementById('cam'),out=document.getElementById('out'),bs=[...document.querySelectorAll('#pre button')],ly=[...cam.querySelectorAll('.ly')];
const reduce=matchMedia('(prefers-reduced-motion: reduce)').matches;
const M={pan:{cam:'translateX(-70px)',tx:0,t:'The camera turns on the spot: all layers shift together, no parallax.'},
tilt:{cam:'translateY(40px)',tx:0,t:'The camera angles up or down from one position; the horizon slides.'},
push:{cam:'translateZ(150px)',tx:0,t:'The camera moves forward: edges expand and near layers grow faster.'},
pull:{cam:'translateZ(-110px)',tx:0,t:'The camera moves backward to reveal more of the scene.'},
truck:{cam:'none',tx:-70,t:'The camera slides sideways: near layers move more than far ones (parallax).'},
orbit:{cam:'rotateY(-22deg)',tx:0,t:'The camera circles the scene; layers separate in depth.'}};
let busy=0;
function play(k){const m=M[k];bs.forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.m===k)));out.innerHTML='<b>'+bs.find(b=>b.dataset.m===k).textContent+'</b>: '+m.t;
clearTimeout(busy);cam.style.transition='none';ly.forEach(l=>{l.style.transition='none';l.style.setProperty('--tx',0)});cam.style.transform='none';void cam.offsetWidth;
if(!reduce){cam.style.transition='transform 1.6s ease-in-out';ly.forEach(l=>l.style.transition='transform 1.6s ease-in-out');}
cam.style.transform=m.cam;ly.forEach(l=>l.style.setProperty('--tx',m.tx));}
bs.forEach(b=>b.addEventListener('click',()=>play(b.dataset.m)));One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Pan, Tilt, Push-in and Truck — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.bx{width:min(300px,100%);display:grid;gap:8px}
.vp{height:140px;border-radius:12px;overflow:hidden;background:#cfd8e3;perspective:380px;position:relative}
.cam{position:absolute;inset:0;transform-style:preserve-3d;transform-origin:50% 60%}
.ly{position:absolute;display:block;left:-60px;right:-60px;transform:translateX(calc(var(--tx,0) * var(--d,0) * 1px))}
.sky{top:0;bottom:50%;background:linear-gradient(#a9c2d8,#eaf0f2)}
.far{bottom:44px;height:60px;background:#8aa5a0;clip-path:polygon(0 100%,0 50%,25% 10%,50% 50%,75% 5%,100% 45%,100% 100%)}
.mid{bottom:20px;height:50px;background:#a9a45f;clip-path:polygon(0 100%,0 50%,30% 15%,60% 45%,100% 10%,100% 100%)}
.near{bottom:-6px;height:44px;background:#6b5a3a;clip-path:polygon(0 100%,0 40%,10% 5%,20% 40%,35% 0,50% 45%,70% 10%,85% 40%,100% 0,100% 100%)}
.pre{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.pre button{height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:11.5px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
@media (prefers-reduced-motion:reduce){.cam,.ly{transition:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="vp"><div class="cam" id="cam"><i class="ly sky"></i><i class="ly far" style="--d:.3"></i><i class="ly mid" style="--d:.65"></i><i class="ly near" style="--d:1"></i></div></div>
<div class="pre" id="pre"><button data-m="pan">Pan</button><button data-m="tilt">Tilt</button><button data-m="push">Push in</button><button data-m="pull">Pull out</button><button data-m="truck">Truck</button><button data-m="orbit">Orbit</button></div><p class="out" id="out" aria-live="polite">Pick a move to replay it.</p></div>
</div>
<script>
const cam=document.getElementById('cam'),out=document.getElementById('out'),bs=[...document.querySelectorAll('#pre button')],ly=[...cam.querySelectorAll('.ly')];
const reduce=matchMedia('(prefers-reduced-motion: reduce)').matches;
const M={pan:{cam:'translateX(-70px)',tx:0,t:'The camera turns on the spot: all layers shift together, no parallax.'},
tilt:{cam:'translateY(40px)',tx:0,t:'The camera angles up or down from one position; the horizon slides.'},
push:{cam:'translateZ(150px)',tx:0,t:'The camera moves forward: edges expand and near layers grow faster.'},
pull:{cam:'translateZ(-110px)',tx:0,t:'The camera moves backward to reveal more of the scene.'},
truck:{cam:'none',tx:-70,t:'The camera slides sideways: near layers move more than far ones (parallax).'},
orbit:{cam:'rotateY(-22deg)',tx:0,t:'The camera circles the scene; layers separate in depth.'}};
let busy=0;
function play(k){const m=M[k];bs.forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.m===k)));out.innerHTML='<b>'+bs.find(b=>b.dataset.m===k).textContent+'</b>: '+m.t;
clearTimeout(busy);cam.style.transition='none';ly.forEach(l=>{l.style.transition='none';l.style.setProperty('--tx',0)});cam.style.transform='none';void cam.offsetWidth;
if(!reduce){cam.style.transition='transform 1.6s ease-in-out';ly.forEach(l=>l.style.transition='transform 1.6s ease-in-out');}
cam.style.transform=m.cam;ly.forEach(l=>l.style.setProperty('--tx',m.tx));}
bs.forEach(b=>b.addEventListener('click',()=>play(b.dataset.m)));
</script>
</body></html>