Progressive Image Blur-Up
A tiny blurred placeholder fills the frame at once and sharpens into the full image when it arrives.
AI prompt
Photograph of a misty mountain lake at sunrise, shown in two states side by side in the same frame size: left a heavily blurred 20-pixel placeholder with just soft peach and blue colour blocks, right the same photograph fully sharp with fine detail on the pines and ripples, identical composition, labelled Placeholder and Loaded, clean layout. Negative: different crops, borders, watermarks, text errors, heavy vignette. Reduced motion: static pair.About this pattern
Definition
Blur-up loading shows a very small version of an image, scaled up and blurred, in the exact space the full image will take. When the real image arrives it fades in and the blur clears. There is no blank gap, no layout shift and the colours hint at what is coming.
Purpose & UX principles
- Reserve the space with a fixed aspect ratio so nothing moves.
- The placeholder can be a few hundred bytes inline or a single average colour.
- Fade the sharp image in over about 400ms, and scale the placeholder slightly to hide its edges.
Interaction states
- A Reload button, and Fast and Slow connection presets.
Motion specification
- Blur clears over 450ms once the image has loaded.
- Reduced motion: the placeholder swaps to the sharp image without a transition.
Responsive behaviour
- Keep the alt text on the final image; the placeholder is decoration.
- Lazy load images below the fold.
Code
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Connection"><button data-p="0" aria-pressed="true">Fast</button><button data-p="1" aria-pressed="false">Slow</button></div><div class="im" id="im"><div class="ph" id="ph"></div><div class="fl" id="fl"></div><span class="tg" id="tg">Placeholder</span></div><button class="mini" id="rl" type="button">Reload image</button></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}
.im{height:140px;border-radius:12px;position:relative;overflow:hidden;background:#cfd7e0}.ph,.fl{position:absolute;inset:0}
.ph{background:linear-gradient(#f4c9a0 0,#c9b8c9 40%,#6d8fa8 40%,#3f6078);filter:blur(18px);transform:scale(1.15)}
.fl{background:radial-gradient(circle at 70% 22%,#fff3c4 0 6%,transparent 7%),linear-gradient(#f4c9a0 0,#d9bfc9 38%,#7da0b8 38%,#3f6078);opacity:0;transition:opacity .45s}
.fl::before{content:"";position:absolute;left:0;right:0;top:30%;height:14%;background:repeating-linear-gradient(90deg,#2d4a3a 0 7px,transparent 7px 13px);clip-path:polygon(0 100%,5% 20%,10% 100%,18% 40%,26% 100%,35% 10%,45% 100%,55% 35%,65% 100%,78% 15%,90% 100%,100% 60%,100% 100%)}
.fl::after{content:"";position:absolute;left:0;right:0;top:44%;bottom:0;background:repeating-linear-gradient(0deg,rgba(255,255,255,.12) 0 2px,transparent 2px 7px)}
.im.ld .ph{filter:blur(0);opacity:0;transition:filter .45s,opacity .45s}.im.ld .fl{opacity:1}
.tg{position:absolute;left:8px;bottom:8px;font-size:10px;padding:2px 8px;border-radius:99px;background:rgba(0,0,0,.6);color:#fff;font-weight:600}
.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}@media (prefers-reduced-motion:reduce){.fl,.im.ld .ph{transition:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const D=[500,2200],im=document.getElementById('im'),tg=document.getElementById('tg'),bs=[...document.querySelectorAll('#pre button')];let p=0,tm=0;
function load(){clearTimeout(tm);im.classList.remove('ld');tg.textContent='Placeholder';tm=setTimeout(()=>{im.classList.add('ld');tg.textContent='Loaded';},D[p]);bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;load();}));document.getElementById('rl').addEventListener('click',load);load();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>Progressive Image Blur-Up — 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}
.im{height:140px;border-radius:12px;position:relative;overflow:hidden;background:#cfd7e0}.ph,.fl{position:absolute;inset:0}
.ph{background:linear-gradient(#f4c9a0 0,#c9b8c9 40%,#6d8fa8 40%,#3f6078);filter:blur(18px);transform:scale(1.15)}
.fl{background:radial-gradient(circle at 70% 22%,#fff3c4 0 6%,transparent 7%),linear-gradient(#f4c9a0 0,#d9bfc9 38%,#7da0b8 38%,#3f6078);opacity:0;transition:opacity .45s}
.fl::before{content:"";position:absolute;left:0;right:0;top:30%;height:14%;background:repeating-linear-gradient(90deg,#2d4a3a 0 7px,transparent 7px 13px);clip-path:polygon(0 100%,5% 20%,10% 100%,18% 40%,26% 100%,35% 10%,45% 100%,55% 35%,65% 100%,78% 15%,90% 100%,100% 60%,100% 100%)}
.fl::after{content:"";position:absolute;left:0;right:0;top:44%;bottom:0;background:repeating-linear-gradient(0deg,rgba(255,255,255,.12) 0 2px,transparent 2px 7px)}
.im.ld .ph{filter:blur(0);opacity:0;transition:filter .45s,opacity .45s}.im.ld .fl{opacity:1}
.tg{position:absolute;left:8px;bottom:8px;font-size:10px;padding:2px 8px;border-radius:99px;background:rgba(0,0,0,.6);color:#fff;font-weight:600}
.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}@media (prefers-reduced-motion:reduce){.fl,.im.ld .ph{transition:none}}
@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="Connection"><button data-p="0" aria-pressed="true">Fast</button><button data-p="1" aria-pressed="false">Slow</button></div><div class="im" id="im"><div class="ph" id="ph"></div><div class="fl" id="fl"></div><span class="tg" id="tg">Placeholder</span></div><button class="mini" id="rl" type="button">Reload image</button></div>
</div>
<script>
const D=[500,2200],im=document.getElementById('im'),tg=document.getElementById('tg'),bs=[...document.querySelectorAll('#pre button')];let p=0,tm=0;
function load(){clearTimeout(tm);im.classList.remove('ld');tg.textContent='Placeholder';tm=setTimeout(()=>{im.classList.add('ld');tg.textContent='Loaded';},D[p]);bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;load();}));document.getElementById('rl').addEventListener('click',load);load();
</script>
</body></html>