Whip Pan Motion Blur
A fast sideways camera move between two scenes with horizontal motion blur at its peak speed.
AI prompt
Cinematic frame mid whip pan: a city street scene smeared into long horizontal streaks of warm orange and blue light, a pedestrian crossing barely visible as a ghost, strong directional motion blur from left to right, the edges of a second scene beginning to appear on the right, 35mm lens, handheld energy. Variants: the first scene sharp before the move and the second scene sharp after. Negative: radial blur, vertical blur, rotation, text, fisheye. Reduced motion: two still frames.About this pattern
Definition
A whip pan swings the camera sideways so quickly that the picture smears into horizontal streaks, then settles on a new scene. It is used as a transition: the blur hides the cut, and the speed adds energy or surprise.
When to use it
- Blur peaks in the middle of the move, when speed is highest, and is near zero at both ends.
- Blur only in the direction of travel; a sideways pan gives horizontal blur.
- Ease in and out sharply so the move feels thrown rather than glided.
What the controls do
- A Whip pan button that swaps between two scenes, and a Blur strength slider.
Motion & timing
- 600ms with a strong ease; blur rises to its maximum at the midpoint and returns.
- Reduced motion: an instant cut with no blur.
Tips & variations
- Keep the move under a second; longer feels like a normal pan.
- Avoid repeated whip pans for people sensitive to motion.
Code of this live preview
<div class="bx"><div class="vw" id="vw"><div class="tr" id="tr"><div class="sa"><i class="m"></i><i class="p"></i><b>Scene A</b></div><div class="sb"><i class="m"></i><i class="p"></i><b>Scene B</b></div></div></div><div class="rw2"><button class="mini" id="wp" type="button">Whip pan</button><label class="rw" style="flex:1">Blur strength <b id="bv">14px</b><input id="bl" type="range" min="2" max="30" value="14"></label></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:130px;border-radius:12px;overflow:hidden;position:relative}.tr{display:flex;width:200%;height:100%;will-change:transform,filter}.tr>div{width:50%;position:relative;overflow:hidden}.tr b{position:absolute;left:10px;bottom:8px;font-size:11px;color:#fff;background:rgba(0,0,0,.45);padding:2px 8px;border-radius:99px}
.sa{background:linear-gradient(#f4b183,#fbe3c9 60%,#5a4a42 60%)}.sb{background:linear-gradient(#7fa7d9,#d6e6f7 60%,#2f4a3a 60%)}.m{position:absolute;bottom:40%;width:34px;height:60px;background:#2b2b2e}.sa .m{left:20%}.sb .m{left:62%;background:#e8e4da;height:74px;width:44px}.p{position:absolute;bottom:40%;left:46%;width:14px;height:40px;border-radius:7px 7px 0 0;background:#c0392b}.sb .p{left:30%;background:#f2c14e}
.rw2{display:flex;gap:12px;align-items:end}.mini{height:30px;padding:0 16px;border-radius:99px;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:600;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.tr{transition:none!important}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const tr=document.getElementById('tr'),bl=document.getElementById('bl'),calm=matchMedia('(prefers-reduced-motion:reduce)').matches;let at=0,id=0;
bl.addEventListener('input',()=>document.getElementById('bv').textContent=bl.value+'px');
document.getElementById('wp').addEventListener('click',()=>{cancelAnimationFrame(id);const from=at,to=at?0:1;at=to;if(calm){tr.style.transform='translateX('+(-to*50)+'%)';return;}const st=performance.now(),d=600,mb=+bl.value;(function f(n){const t=Math.min(1,(n-st)/d),e=t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,x=from+(to-from)*e,b=Math.sin(Math.PI*t)*mb;tr.style.transform='translateX('+(-x*50)+'%)';tr.style.filter=b>.5?'blur('+b.toFixed(1)+'px)':'none';if(t<1)id=requestAnimationFrame(f);else tr.style.filter='none';})(st);});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>Whip Pan Motion Blur — 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:130px;border-radius:12px;overflow:hidden;position:relative}.tr{display:flex;width:200%;height:100%;will-change:transform,filter}.tr>div{width:50%;position:relative;overflow:hidden}.tr b{position:absolute;left:10px;bottom:8px;font-size:11px;color:#fff;background:rgba(0,0,0,.45);padding:2px 8px;border-radius:99px}
.sa{background:linear-gradient(#f4b183,#fbe3c9 60%,#5a4a42 60%)}.sb{background:linear-gradient(#7fa7d9,#d6e6f7 60%,#2f4a3a 60%)}.m{position:absolute;bottom:40%;width:34px;height:60px;background:#2b2b2e}.sa .m{left:20%}.sb .m{left:62%;background:#e8e4da;height:74px;width:44px}.p{position:absolute;bottom:40%;left:46%;width:14px;height:40px;border-radius:7px 7px 0 0;background:#c0392b}.sb .p{left:30%;background:#f2c14e}
.rw2{display:flex;gap:12px;align-items:end}.mini{height:30px;padding:0 16px;border-radius:99px;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:600;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.tr{transition:none!important}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="vw" id="vw"><div class="tr" id="tr"><div class="sa"><i class="m"></i><i class="p"></i><b>Scene A</b></div><div class="sb"><i class="m"></i><i class="p"></i><b>Scene B</b></div></div></div><div class="rw2"><button class="mini" id="wp" type="button">Whip pan</button><label class="rw" style="flex:1">Blur strength <b id="bv">14px</b><input id="bl" type="range" min="2" max="30" value="14"></label></div></div>
</div>
<script>
const tr=document.getElementById('tr'),bl=document.getElementById('bl'),calm=matchMedia('(prefers-reduced-motion:reduce)').matches;let at=0,id=0;
bl.addEventListener('input',()=>document.getElementById('bv').textContent=bl.value+'px');
document.getElementById('wp').addEventListener('click',()=>{cancelAnimationFrame(id);const from=at,to=at?0:1;at=to;if(calm){tr.style.transform='translateX('+(-to*50)+'%)';return;}const st=performance.now(),d=600,mb=+bl.value;(function f(n){const t=Math.min(1,(n-st)/d),e=t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,x=from+(to-from)*e,b=Math.sin(Math.PI*t)*mb;tr.style.transform='translateX('+(-x*50)+'%)';tr.style.filter=b>.5?'blur('+b.toFixed(1)+'px)':'none';if(t<1)id=requestAnimationFrame(f);else tr.style.filter='none';})(st);});
</script>
</body></html>