Scribble Circle Annotation
Hand-drawn marker circle, arrow and underline drawn over a photo to point at a detail, with a draw-on animation.
AI prompt
Photograph of a wooden desk with a laptop, a coffee cup and a notebook, a hand-drawn red marker circle with a loose overshooting loop around the coffee cup, a curved hand-drawn arrow pointing to it from the left with a short handwritten note reading best part, a wavy red underline below the notebook title, the marks slightly uneven like real pen strokes, natural window light. Negative: perfect vector shapes, digital fonts, extra marks, watermark. Reduced motion: still image.About this pattern
Definition
Marking a photo or screenshot by hand tells the viewer exactly where to look and adds a personal, editorial tone. Each mark is an SVG path with a rough, overshooting shape. Drawing it on with a stroke-dashoffset animation shows the gesture, and a short note beside it explains the point.
When to use it
- Draw the circle as an open loop that overshoots its start, slightly oval and uneven.
- Use a round line cap and a stroke around 3 to 4 pixels in a marker colour like red or yellow.
- Animate with pathLength set to 1 and dashoffset from 1 to 0 over about 600ms.
- Pair with a handwriting-style note, short and specific.
What the controls do
- Choose Circle, Arrow or Underline to draw that mark.
Motion & timing
- Marks draw on over 600ms.
- Reduced motion: they appear complete.
Tips & variations
- Decorative marks must not hide the detail they point to.
- Provide the same information in text for non-visual readers.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Mark"><button data-p="0" aria-pressed="true">Circle</button><button data-p="1" aria-pressed="false">Arrow</button><button data-p="2" aria-pressed="false">Underline</button></div><svg class="ph" id="ph" viewBox="0 0 300 150" role="img" aria-label="Desk scene with hand-drawn marks"><rect width="300" height="150" fill="#d9c3a0"/><rect y="104" width="300" height="46" fill="#b88f5f"/><rect x="26" y="40" width="108" height="64" rx="4" fill="#3a4658"/><rect x="34" y="47" width="92" height="50" rx="2" fill="#8fb4e8"/><path d="M14 104 H146 L138 114 H22Z" fill="#8a919c"/><rect x="200" y="76" width="28" height="30" rx="4" fill="#f4efe6"/><path d="M228 84 q12 2 0 14" fill="none" stroke="#f4efe6" stroke-width="4"/><rect x="238" y="70" width="42" height="56" rx="3" fill="#c0392b" transform="rotate(8 258 98)"/><rect x="246" y="80" width="26" height="4" fill="#fff" transform="rotate(8 258 98)"/><g id="mk" fill="none" stroke="#e11d2f" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path id="m0" pathLength="1" d="M214 58 C196 62 188 82 196 100 C204 116 230 114 238 96 C246 78 234 56 212 54 C200 53 192 60 188 66"/><path id="m1" pathLength="1" d="M70 28 C100 12 150 14 184 54 M170 54 L186 58 L182 42"/><path id="m2" pathLength="1" d="M236 134 C246 130 254 138 264 133 S282 132 290 135"/></g></svg><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}
.ph{width:100%;height:auto;border-radius:12px;display:block;border:1px solid var(--line)}#mk path{stroke-dasharray:1;stroke-dashoffset:1;display:none}#mk path.on{display:block}.out{font-size:12px;color:var(--muted);min-height:16px;margin:0}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const bs=[...document.querySelectorAll('#pre button')],M=[0,1,2].map(i=>document.getElementById('m'+i)),calm=matchMedia('(prefers-reduced-motion:reduce)').matches,NT=['Circle: points at the cup.','Arrow: leads the eye from the laptop to the cup.','Underline: stresses the notebook.'];let raf=0;
function show(p){M.forEach((m,i)=>{m.classList.toggle('on',i===p);m.style.strokeDashoffset=calm||i!==p?(i===p?0:1):1;});cancelAnimationFrame(raf);if(!calm){const m=M[p],t0=performance.now();(function f(n){const k=Math.min(1,(n-t0)/600);m.style.strokeDashoffset=1-(1-Math.pow(1-k,3));if(k<1)raf=requestAnimationFrame(f);})(t0);}
document.getElementById('out').textContent=NT[p];bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>show(+b.dataset.p)));show(0);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>Scribble Circle Annotation — 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}
.ph{width:100%;height:auto;border-radius:12px;display:block;border:1px solid var(--line)}#mk path{stroke-dasharray:1;stroke-dashoffset:1;display:none}#mk path.on{display:block}.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="Mark"><button data-p="0" aria-pressed="true">Circle</button><button data-p="1" aria-pressed="false">Arrow</button><button data-p="2" aria-pressed="false">Underline</button></div><svg class="ph" id="ph" viewBox="0 0 300 150" role="img" aria-label="Desk scene with hand-drawn marks"><rect width="300" height="150" fill="#d9c3a0"/><rect y="104" width="300" height="46" fill="#b88f5f"/><rect x="26" y="40" width="108" height="64" rx="4" fill="#3a4658"/><rect x="34" y="47" width="92" height="50" rx="2" fill="#8fb4e8"/><path d="M14 104 H146 L138 114 H22Z" fill="#8a919c"/><rect x="200" y="76" width="28" height="30" rx="4" fill="#f4efe6"/><path d="M228 84 q12 2 0 14" fill="none" stroke="#f4efe6" stroke-width="4"/><rect x="238" y="70" width="42" height="56" rx="3" fill="#c0392b" transform="rotate(8 258 98)"/><rect x="246" y="80" width="26" height="4" fill="#fff" transform="rotate(8 258 98)"/><g id="mk" fill="none" stroke="#e11d2f" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path id="m0" pathLength="1" d="M214 58 C196 62 188 82 196 100 C204 116 230 114 238 96 C246 78 234 56 212 54 C200 53 192 60 188 66"/><path id="m1" pathLength="1" d="M70 28 C100 12 150 14 184 54 M170 54 L186 58 L182 42"/><path id="m2" pathLength="1" d="M236 134 C246 130 254 138 264 133 S282 132 290 135"/></g></svg><p class="out" id="out"></p></div>
</div>
<script>
const bs=[...document.querySelectorAll('#pre button')],M=[0,1,2].map(i=>document.getElementById('m'+i)),calm=matchMedia('(prefers-reduced-motion:reduce)').matches,NT=['Circle: points at the cup.','Arrow: leads the eye from the laptop to the cup.','Underline: stresses the notebook.'];let raf=0;
function show(p){M.forEach((m,i)=>{m.classList.toggle('on',i===p);m.style.strokeDashoffset=calm||i!==p?(i===p?0:1):1;});cancelAnimationFrame(raf);if(!calm){const m=M[p],t0=performance.now();(function f(n){const k=Math.min(1,(n-t0)/600);m.style.strokeDashoffset=1-(1-Math.pow(1-k,3));if(k<1)raf=requestAnimationFrame(f);})(t0);}
document.getElementById('out').textContent=NT[p];bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>show(+b.dataset.p)));show(0);
</script>
</body></html>