Tracking Shot vs Pan vs Locked-Off
A walker shown three ways: locked-off camera, a pan, and a track that moves alongside with parallax.
AI prompt
Cinematic side-on tracking shot of a woman in a red coat walking through a park at golden hour, the camera gliding alongside at walking speed so she stays centred in frame, the nearest tree trunks sliding past quickly in soft blur, mid-distance trees slower, distant hills barely moving, strong parallax between layers, 35mm lens, warm low sun, smooth steadicam feel. Variants: a locked-off camera where she walks out of the frame, and a pan where the background slides evenly with no parallax. Negative: camera shake, zoom, fisheye, text, cuts. Reduced motion: two still frames.About this pattern
Definition
Three ways to follow a moving subject look different. A locked-off camera lets the subject leave the frame. A pan rotates the camera on the spot, so the whole background slides at one speed. A tracking shot moves the camera itself alongside the subject, so near layers slide faster than far ones, which is parallax.
When to use it
- Locked-off: the subject crosses the frame; the world stays still.
- Pan: the subject stays centred; every layer moves together with no depth change.
- Track: the subject stays centred; near layers move fast and distant ones slowly.
- Prompts: say tracking shot or camera moves with the subject for parallax; say pan for a rotation.
What the controls do
- Three mode buttons, a Speed slider, a Pause button and a Position slider to scrub.
Motion & timing
- The subject walks at your chosen speed and loops; the camera responds per mode.
- Reduced motion: nothing runs on its own; scrub with the Position slider.
Tips & variations
- Parallax is the cue for depth; if the layers move equally the shot reads as flat.
- Keep the speed matched to the subject so the framing stays steady.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Camera"><button data-p="0" aria-pressed="false">Locked-off</button><button data-p="1" aria-pressed="false">Pan</button><button data-p="2" aria-pressed="true">Track</button></div><div class="vw" id="vw"><div class="l0" id="l0"></div><div class="l1" id="l1"></div><div class="l2" id="l2"></div><div class="l3" id="l3"></div><i class="pe" id="pe"><u></u></i></div><div class="two"><label class="rw">Position <b id="pv">0%</b><input id="ps" type="range" min="0" max="100" value="0"></label><button class="mini" id="pz" type="button">Pause</button></div></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}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.vw{height:120px;border-radius:12px;position:relative;overflow:hidden;background:linear-gradient(#f6c98a,#e9eef2 70%)}.vw>div{position:absolute;left:0;right:0}
.l0{bottom:34%;height:34%;background:radial-gradient(70px 44px at 70px 100%,#aab7ca 98%,transparent) 0 100%/140px 100% repeat-x}
.l1{bottom:22%;height:36%;background:linear-gradient(90deg,#5d8a64 0 12px,transparent 12px 52px) 0 100%/52px 70% repeat-x}
.l2{bottom:0;height:30%;background:repeating-linear-gradient(90deg,#7a9a62 0 36px,#6e8e57 36px 72px)}
.l3{bottom:0;height:46%;background:linear-gradient(90deg,#3a5a3e 0 20px,transparent 20px 150px) 0 100%/150px 100% repeat-x;opacity:.9}
.pe{position:absolute;bottom:18%;width:16px;height:46px;margin-left:-8px;display:block}.pe::before{content:"";position:absolute;left:3px;top:0;width:10px;height:10px;border-radius:50%;background:#e4b896}.pe::after{content:"";position:absolute;left:1px;top:11px;width:14px;height:24px;border-radius:5px;background:#c0392b}.pe u{position:absolute;left:3px;bottom:0;width:4px;height:12px;background:#2a2a30;transform-origin:50% 0;box-shadow:6px 0 0 #2a2a30}
.mini{height:30px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:12px;font-weight:600;cursor:pointer}.mini:disabled{opacity:.4;cursor:default}.sw{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const vw=document.getElementById('vw'),ps=document.getElementById('ps'),pz=document.getElementById('pz'),bs=[...document.querySelectorAll('#pre button')],L=['l0','l1','l2','l3'].map(i=>document.getElementById(i)),pe=document.getElementById('pe'),calm=matchMedia('(prefers-reduced-motion:reduce)').matches;
let p=2,pos=0,paused=calm,last=0,sp=1;const K=[.25,.6,1,1.8],W=900;
function draw(){const w=vw.clientWidth,wx=pos*W,cx=wx-w/2;let sx,off;
if(p===0){sx=((wx%(W+80))/ (W+80))*(w+60)-30;off=[0,0,0,0];}
else if(p===1){sx=w/2;const o=wx*.55;off=[o,o,o,o];}
else{sx=w/2;off=K.map(k=>wx*k*.55);}
L.forEach((e,i)=>e.style.backgroundPositionX=(-off[i])+'px');pe.style.left=sx+'px';pe.firstElementChild.style.transform='rotate('+(Math.sin(wx*.08)*22)+'deg)';
ps.value=Math.round(pos*100);document.getElementById('pv').textContent=Math.round(pos*100)+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
function loop(n){if(!paused){pos=(pos+(n-last)/1000*.12*sp)%1;}last=n;draw();requestAnimationFrame(loop);}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;draw();}));ps.addEventListener('input',()=>{pos=ps.value/100;paused=true;pz.textContent='Play';draw();});
pz.addEventListener('click',()=>{paused=!paused;pz.textContent=paused?'Play':'Pause';});pz.textContent=paused?'Play':'Pause';
if(!calm)requestAnimationFrame(n=>{last=n;loop(n);});else draw();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>Tracking Shot vs Pan vs Locked-Off — 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}}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.vw{height:120px;border-radius:12px;position:relative;overflow:hidden;background:linear-gradient(#f6c98a,#e9eef2 70%)}.vw>div{position:absolute;left:0;right:0}
.l0{bottom:34%;height:34%;background:radial-gradient(70px 44px at 70px 100%,#aab7ca 98%,transparent) 0 100%/140px 100% repeat-x}
.l1{bottom:22%;height:36%;background:linear-gradient(90deg,#5d8a64 0 12px,transparent 12px 52px) 0 100%/52px 70% repeat-x}
.l2{bottom:0;height:30%;background:repeating-linear-gradient(90deg,#7a9a62 0 36px,#6e8e57 36px 72px)}
.l3{bottom:0;height:46%;background:linear-gradient(90deg,#3a5a3e 0 20px,transparent 20px 150px) 0 100%/150px 100% repeat-x;opacity:.9}
.pe{position:absolute;bottom:18%;width:16px;height:46px;margin-left:-8px;display:block}.pe::before{content:"";position:absolute;left:3px;top:0;width:10px;height:10px;border-radius:50%;background:#e4b896}.pe::after{content:"";position:absolute;left:1px;top:11px;width:14px;height:24px;border-radius:5px;background:#c0392b}.pe u{position:absolute;left:3px;bottom:0;width:4px;height:12px;background:#2a2a30;transform-origin:50% 0;box-shadow:6px 0 0 #2a2a30}
.mini{height:30px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:12px;font-weight:600;cursor:pointer}.mini:disabled{opacity:.4;cursor:default}.sw{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Camera"><button data-p="0" aria-pressed="false">Locked-off</button><button data-p="1" aria-pressed="false">Pan</button><button data-p="2" aria-pressed="true">Track</button></div><div class="vw" id="vw"><div class="l0" id="l0"></div><div class="l1" id="l1"></div><div class="l2" id="l2"></div><div class="l3" id="l3"></div><i class="pe" id="pe"><u></u></i></div><div class="two"><label class="rw">Position <b id="pv">0%</b><input id="ps" type="range" min="0" max="100" value="0"></label><button class="mini" id="pz" type="button">Pause</button></div></div>
</div>
<script>
const vw=document.getElementById('vw'),ps=document.getElementById('ps'),pz=document.getElementById('pz'),bs=[...document.querySelectorAll('#pre button')],L=['l0','l1','l2','l3'].map(i=>document.getElementById(i)),pe=document.getElementById('pe'),calm=matchMedia('(prefers-reduced-motion:reduce)').matches;
let p=2,pos=0,paused=calm,last=0,sp=1;const K=[.25,.6,1,1.8],W=900;
function draw(){const w=vw.clientWidth,wx=pos*W,cx=wx-w/2;let sx,off;
if(p===0){sx=((wx%(W+80))/ (W+80))*(w+60)-30;off=[0,0,0,0];}
else if(p===1){sx=w/2;const o=wx*.55;off=[o,o,o,o];}
else{sx=w/2;off=K.map(k=>wx*k*.55);}
L.forEach((e,i)=>e.style.backgroundPositionX=(-off[i])+'px');pe.style.left=sx+'px';pe.firstElementChild.style.transform='rotate('+(Math.sin(wx*.08)*22)+'deg)';
ps.value=Math.round(pos*100);document.getElementById('pv').textContent=Math.round(pos*100)+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
function loop(n){if(!paused){pos=(pos+(n-last)/1000*.12*sp)%1;}last=n;draw();requestAnimationFrame(loop);}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;draw();}));ps.addEventListener('input',()=>{pos=ps.value/100;paused=true;pz.textContent='Play';draw();});
pz.addEventListener('click',()=>{paused=!paused;pz.textContent=paused?'Play':'Pause';});pz.textContent=paused?'Play':'Pause';
if(!calm)requestAnimationFrame(n=>{last=n;loop(n);});else draw();
</script>
</body></html>