Telephoto Compression
The same person and poles shot at 24 mm and 200 mm from different distances: long lenses pull the background close.
AI prompt
Side by side photographs of the same person standing on a road lined with identical street lamps, left shot at 24mm from close range with the lamps shrinking quickly into the distance, right shot at 200mm from far away with the lamps appearing nearly equal in size and stacked closely behind the subject, same subject size in both, golden hour light. Negative: different subject size, text, watermark, distortion on the telephoto side. Reduced motion: still image.About this pattern
Definition
A telephoto lens does not change perspective by itself; it makes you stand farther away to keep the subject the same size. Standing far away makes distances between things look smaller, so the background seems to pile up behind the subject. Wide lenses used up close do the opposite and stretch the space.
When to use it
- Keep the subject the same size: at longer focal lengths, move the camera back.
- Far-away background objects look larger and closer to the subject with a long lens.
- At 24 mm from close range the poles shrink quickly into the distance.
- Use telephoto to flatten space, make backgrounds feel big and make subjects stand out.
What the controls do
- Four focal length buttons and a Focal length slider; the camera distance updates.
Motion & timing
- The scene updates as you move the slider.
- Reduced motion: nothing animates on its own.
Tips & variations
- Compression is about camera distance, not the lens itself; cropping a wide photo gives the same perspective.
- Telephoto also shrinks depth of field for a given aperture and distance.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Focal length"><button data-p="0" aria-pressed="true">24 mm</button><button data-p="1" aria-pressed="false">50 mm</button><button data-p="2" aria-pressed="false">135 mm</button><button data-p="3" aria-pressed="false">200 mm</button></div><div class="vw" id="vw"></div><label class="rw">Focal length <b id="fv"></b><input id="fs" type="range" min="24" max="200" value="24"></label><p class="out" id="out"></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}
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{position:relative;height:130px;border-radius:12px;overflow:hidden;background:linear-gradient(#f9d9a6 0 38%,#cdbd9f 38% 100%)}.vw i{position:absolute;display:block;transform-origin:bottom center}.pl{width:5px;background:#3a3a44;border-radius:2px}.pl::after{content:"";position:absolute;left:-5px;top:0;width:15px;height:5px;background:#3a3a44;border-radius:3px}.pe{width:16px;background:#d94f3d;border-radius:8px 8px 3px 3px}.pe::before{content:"";position:absolute;left:3px;top:-12px;width:10px;height:10px;border-radius:50%;background:#e4b896}.hz{left:0;right:0;top:38%;height:1px;background:rgba(0,0,0,.18)}.out{font-size:12px;color:var(--muted);min-height:16px;margin:0}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const vw=document.getElementById('vw'),fs=document.getElementById('fs'),bs=[...document.querySelectorAll('#pre button')],PRS=[24,50,135,200];const DL=[5,11,17,23,29,36],LAT=[-4.5,4.5];
function up(){const f=+fs.value,D=2.5*f/24,W=vw.clientWidth,hz=130*.38,k=40;let h='<i class="hz"></i>';const items=[];
DL.forEach(d=>LAT.forEach(l=>items.push({d:D+d,l,t:'pl',H:4.2})));
items.sort((a,b)=>b.d-a.d);items.push({d:D,l:0,t:'pe',H:1.8});
items.forEach(o=>{const s=k*D/o.d,x=W/2+o.l*s*1.6,base=hz+1.6*s,hh=o.H*s;if(x<-20||x>W+20)return;h+='<i class="'+o.t+'" style="left:'+(x-3).toFixed(1)+'px;top:'+(base-hh).toFixed(1)+'px;height:'+hh.toFixed(1)+'px"></i>';});
vw.innerHTML=h;document.getElementById('fv').textContent=f+' mm \u00b7 camera '+D.toFixed(1)+' m from the subject';document.getElementById('out').textContent=f<60?'Wide: poles shrink fast; space feels deep.':f<150?'Medium: balanced depth.':'Telephoto: poles look similar in size and stacked close.';
bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===PRS.reduce((m,x,i)=>Math.abs(x-f)<Math.abs(PRS[m]-f)?i:m,0)&&Math.abs(PRS[+b.dataset.p]-f)<20)));}
bs.forEach(b=>b.addEventListener('click',()=>{fs.value=PRS[+b.dataset.p];up();}));fs.addEventListener('input',up);addEventListener('resize',up);up();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>Telephoto Compression — 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{position:relative;height:130px;border-radius:12px;overflow:hidden;background:linear-gradient(#f9d9a6 0 38%,#cdbd9f 38% 100%)}.vw i{position:absolute;display:block;transform-origin:bottom center}.pl{width:5px;background:#3a3a44;border-radius:2px}.pl::after{content:"";position:absolute;left:-5px;top:0;width:15px;height:5px;background:#3a3a44;border-radius:3px}.pe{width:16px;background:#d94f3d;border-radius:8px 8px 3px 3px}.pe::before{content:"";position:absolute;left:3px;top:-12px;width:10px;height:10px;border-radius:50%;background:#e4b896}.hz{left:0;right:0;top:38%;height:1px;background:rgba(0,0,0,.18)}.out{font-size:12px;color:var(--muted);min-height:16px;margin:0}
@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="Focal length"><button data-p="0" aria-pressed="true">24 mm</button><button data-p="1" aria-pressed="false">50 mm</button><button data-p="2" aria-pressed="false">135 mm</button><button data-p="3" aria-pressed="false">200 mm</button></div><div class="vw" id="vw"></div><label class="rw">Focal length <b id="fv"></b><input id="fs" type="range" min="24" max="200" value="24"></label><p class="out" id="out"></p></div>
</div>
<script>
const vw=document.getElementById('vw'),fs=document.getElementById('fs'),bs=[...document.querySelectorAll('#pre button')],PRS=[24,50,135,200];const DL=[5,11,17,23,29,36],LAT=[-4.5,4.5];
function up(){const f=+fs.value,D=2.5*f/24,W=vw.clientWidth,hz=130*.38,k=40;let h='<i class="hz"></i>';const items=[];
DL.forEach(d=>LAT.forEach(l=>items.push({d:D+d,l,t:'pl',H:4.2})));
items.sort((a,b)=>b.d-a.d);items.push({d:D,l:0,t:'pe',H:1.8});
items.forEach(o=>{const s=k*D/o.d,x=W/2+o.l*s*1.6,base=hz+1.6*s,hh=o.H*s;if(x<-20||x>W+20)return;h+='<i class="'+o.t+'" style="left:'+(x-3).toFixed(1)+'px;top:'+(base-hh).toFixed(1)+'px;height:'+hh.toFixed(1)+'px"></i>';});
vw.innerHTML=h;document.getElementById('fv').textContent=f+' mm \u00b7 camera '+D.toFixed(1)+' m from the subject';document.getElementById('out').textContent=f<60?'Wide: poles shrink fast; space feels deep.':f<150?'Medium: balanced depth.':'Telephoto: poles look similar in size and stacked close.';
bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===PRS.reduce((m,x,i)=>Math.abs(x-f)<Math.abs(PRS[m]-f)?i:m,0)&&Math.abs(PRS[+b.dataset.p]-f)<20)));}
bs.forEach(b=>b.addEventListener('click',()=>{fs.value=PRS[+b.dataset.p];up();}));fs.addEventListener('input',up);addEventListener('resize',up);up();
</script>
</body></html>