Stop-Motion Frame Rate
A ball bounces at a frame rate you choose, with optional hand-made jitter between frames.
AI prompt
Stop-motion animation of [character or object], shot on twos at 12 frames per second, clay or felt material with visible fingerprints and tiny surface imperfections, slight frame-to-frame jitter in position and rotation, handcrafted miniature set, warm practical lighting with soft shadows, shallow depth of field, locked-off camera, imperfect timing with small hesitations, vivid but limited colour palette. Sample frame rates: 24 fps looks like smooth CGI, 12 fps classic stop-motion, 8 fps rough and charming. Negative: smooth interpolated motion, motion blur, perfect symmetry, glossy plastic look, camera shake, morphing between frames.About this pattern
Definition
Stop-motion is animation shot frame by frame, usually at 8 to 12 poses per second. Each pose is slightly different because the object is moved by hand, which gives the characteristic stepped, slightly uneven look.
When to use it
- Lowering the frame rate (8 to 12 fps) and adding jitter is the quickest way to make smooth digital motion feel handmade and warm.
- Use it for titles, characters and product shots that should feel crafted, not computed.
- Keep the camera and lighting steady; only the subject should step.
What the controls do
- FPS slider from 4 to 24; Jitter switch adds random offset and rotation per frame; Pause stops the animation.
Motion & timing
- The ball follows a bounce arc sampled at the chosen fps; position and squash are recomputed only when a new frame begins.
- Reduced motion: the demo starts paused, showing one frame, and Play runs it on demand.
Tips & variations
- Looks the same at any size; the stepping reads best on motion with clear arcs, such as bounces or walks.
- In prompts, state the frame rate in numbers.
Code of this live preview
<div class="st" id="st"><i class="ball" id="ball"></i><i class="sh" id="sh"></i></div>
<div class="ctl"><label>Frames per second <b id="fv">12</b><input id="fps" type="range" min="4" max="24" value="12"></label>
<div class="row"><label class="sw"><input id="jt" type="checkbox" checked> Jitter</label><button 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}
.st{position:relative;width:min(300px,100%);height:150px;border-radius:12px;background:#efe6d2;overflow:hidden}
.st::after{content:"";position:absolute;left:0;right:0;bottom:0;height:34px;background:#c9b48a}
.ball{position:absolute;left:0;bottom:34px;width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f5a28a,#d9573a);transform-origin:50% 100%;will-change:transform}
.sh{position:absolute;left:0;bottom:30px;width:34px;height:8px;border-radius:50%;background:rgba(60,40,20,.28)}
.ctl{width:min(300px,100%);margin-top:10px;display:grid;gap:8px}
label{font-size:11.5px;color:var(--muted);display:grid;gap:3px}
label b{color:var(--text)}
.row{display:flex;justify-content:space-between;align-items:center}
.sw{display:flex;gap:6px;align-items:center}
input[type=range]{width:100%;accent-color:#171717}
#pz{height:28px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:12px;cursor:pointer}
input:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}const ball=document.getElementById('ball'),sh=document.getElementById('sh'),fps=document.getElementById('fps'),fv=document.getElementById('fv'),jt=document.getElementById('jt'),pz=document.getElementById('pz');
const reduce=matchMedia('(prefers-reduced-motion: reduce)').matches;let paused=reduce,last=-1,t0=performance.now();pz.textContent=paused?'Play':'Pause';
let seed=3;const rnd=()=>(seed=(seed*9301+49297)%233280)/233280-.5;
function pose(f){const T=f/(+fps.value),p=(T%2.4)/2.4,x=p*(Math.min(document.getElementById('st').clientWidth,300)-34),b=Math.abs(Math.sin(p*Math.PI*3)),y=-b*70,sq=1-(1-b)*.16;
const j=jt.checked?[rnd()*4,rnd()*3,rnd()*10]:[0,0,0];ball.style.transform='translate('+(x+j[0])+'px,'+(y+j[1])+'px) rotate('+j[2]+'deg) scale('+(1+(1-sq))+','+sq+')';
sh.style.transform='translate('+x+'px,0) scale('+(1-b*.45)+',1)';}
pose(0);
function loop(now){const f=Math.floor((now-t0)/1000*(+fps.value));if(!paused&&f!==last){last=f;pose(f);}requestAnimationFrame(loop);}requestAnimationFrame(loop);
fps.addEventListener('input',()=>{fv.textContent=fps.value;t0=performance.now();last=-1;});
pz.addEventListener('click',()=>{paused=!paused;pz.textContent=paused?'Play':'Pause';if(!paused){t0=performance.now();last=-1;}});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>Stop-Motion Frame Rate — 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}}
.st{position:relative;width:min(300px,100%);height:150px;border-radius:12px;background:#efe6d2;overflow:hidden}
.st::after{content:"";position:absolute;left:0;right:0;bottom:0;height:34px;background:#c9b48a}
.ball{position:absolute;left:0;bottom:34px;width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f5a28a,#d9573a);transform-origin:50% 100%;will-change:transform}
.sh{position:absolute;left:0;bottom:30px;width:34px;height:8px;border-radius:50%;background:rgba(60,40,20,.28)}
.ctl{width:min(300px,100%);margin-top:10px;display:grid;gap:8px}
label{font-size:11.5px;color:var(--muted);display:grid;gap:3px}
label b{color:var(--text)}
.row{display:flex;justify-content:space-between;align-items:center}
.sw{display:flex;gap:6px;align-items:center}
input[type=range]{width:100%;accent-color:#171717}
#pz{height:28px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:12px;cursor:pointer}
input:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
</style></head>
<body><div class="stage">
<div class="st" id="st"><i class="ball" id="ball"></i><i class="sh" id="sh"></i></div>
<div class="ctl"><label>Frames per second <b id="fv">12</b><input id="fps" type="range" min="4" max="24" value="12"></label>
<div class="row"><label class="sw"><input id="jt" type="checkbox" checked> Jitter</label><button id="pz" type="button">Pause</button></div></div>
</div>
<script>
const ball=document.getElementById('ball'),sh=document.getElementById('sh'),fps=document.getElementById('fps'),fv=document.getElementById('fv'),jt=document.getElementById('jt'),pz=document.getElementById('pz');
const reduce=matchMedia('(prefers-reduced-motion: reduce)').matches;let paused=reduce,last=-1,t0=performance.now();pz.textContent=paused?'Play':'Pause';
let seed=3;const rnd=()=>(seed=(seed*9301+49297)%233280)/233280-.5;
function pose(f){const T=f/(+fps.value),p=(T%2.4)/2.4,x=p*(Math.min(document.getElementById('st').clientWidth,300)-34),b=Math.abs(Math.sin(p*Math.PI*3)),y=-b*70,sq=1-(1-b)*.16;
const j=jt.checked?[rnd()*4,rnd()*3,rnd()*10]:[0,0,0];ball.style.transform='translate('+(x+j[0])+'px,'+(y+j[1])+'px) rotate('+j[2]+'deg) scale('+(1+(1-sq))+','+sq+')';
sh.style.transform='translate('+x+'px,0) scale('+(1-b*.45)+',1)';}
pose(0);
function loop(now){const f=Math.floor((now-t0)/1000*(+fps.value));if(!paused&&f!==last){last=f;pose(f);}requestAnimationFrame(loop);}requestAnimationFrame(loop);
fps.addEventListener('input',()=>{fv.textContent=fps.value;t0=performance.now();last=-1;});
pz.addEventListener('click',()=>{paused=!paused;pz.textContent=paused?'Play':'Pause';if(!paused){t0=performance.now();last=-1;}});
</script>
</body></html>