Step-by-Step Chart Reveal
Step through a three-beat data story: bars grow, one is highlighted, then a takeaway caption lands.
AI prompt
Explainer video segment, 16:9, 6 seconds, a clean bar chart of monthly sign-ups on a light background. Beat one (0 to 2s): five bars grow up from the baseline with a small stagger, labels J F M A M below. Beat two (2 to 4s): all bars except April fade to light grey while April turns to the single accent colour and its value label pops above it. Beat three (4 to 6s): a short caption fades in at the bottom, "April doubled sign-ups". Flat vector style, rounded bar tops, consistent easing, readable large text, no 3D, no gridline clutter. Negative: jittery bars, tiny text, rainbow colours, random numbers changing, glitches.About this pattern
Definition
A step-by-step chart reveal shows data in beats so the viewer reads one idea at a time: first the shape, then the highlight, then the conclusion.
When to use it
- Replaces dense static charts in explainer videos and decks; each beat has one message.
- Dim everything except the focus; add a one-line takeaway in plain words.
- Give each beat 1.5 to 2 seconds so narration or captions keep pace.
What the controls do
- Next steps through the beats; Restart goes back to the empty chart.
Motion & timing
- Bars grow over 600ms with 90ms stagger; non-focus bars dim over 300ms; caption fades in over 300ms.
- Reduced motion: each beat shows its end state at once.
Tips & variations
- Keep to four to six bars and large labels; phones read small charts poorly.
- Design the takeaway to sit under the chart on narrow frames.
Code of this live preview
<div class="bx"><div class="ch" id="ch"></div><p class="cap" id="cap" aria-live="polite">Press Next to start.</p><div class="row"><button id="nx" type="button">Next</button><button id="rs" type="button">Restart</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}
.bx{width:min(300px,100%);display:grid;gap:10px}
.ch{height:130px;border-radius:12px;background:var(--surface);border:1px solid var(--line);display:flex;align-items:flex-end;justify-content:space-around;padding:12px 14px 22px;position:relative}
.b{position:relative;width:34px;height:var(--h);transform-origin:50% 100%;transform:scaleY(0);background:#171717;border-radius:6px 6px 0 0;transition:transform .6s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 90ms),background .3s,opacity .3s}
.b.on{transform:none}
.b.dim{background:#cfcfca}
.b.hi{background:#ff5a36}
.b::after{content:attr(data-l);position:absolute;bottom:-18px;left:0;right:0;text-align:center;font-size:11px;color:var(--muted)}
.b i{position:absolute;top:-18px;left:0;right:0;text-align:center;font-style:normal;font-size:11px;font-weight:700;opacity:0;transition:opacity .3s}
.b.hi i{opacity:1}
.cap{min-height:20px;text-align:center;font-size:13px;font-weight:600}
.row{display:flex;gap:6px;justify-content:center}.row button{height:28px;padding:0 16px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:12px;cursor:pointer}
#nx{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}#nx:disabled{opacity:.4}
button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.b,.b i{transition:none}}const D=[['J',30],['F',42],['M',38],['A',92],['M',60]],ch=document.getElementById('ch'),cap=document.getElementById('cap'),nx=document.getElementById('nx');let step=0;
D.forEach((d,i)=>{const b=document.createElement('div');b.className='b';b.style.setProperty('--h',d[1]+'px');b.style.setProperty('--i',i);b.dataset.l=d[0];b.innerHTML='<i>'+d[1]+'k</i>';ch.append(b);});
const bars=[...ch.children];
function go(){step++;if(step===1){bars.forEach(b=>b.classList.add('on'));cap.textContent='Sign-ups by month';}
else if(step===2){bars.forEach((b,i)=>b.classList.add(i===3?'hi':'dim'));cap.textContent='April stands out';}
else if(step===3){cap.textContent='April doubled sign-ups';nx.disabled=true;}}
function rs(){step=0;bars.forEach(b=>b.className='b');cap.textContent='Press Next to start.';nx.disabled=false;}
nx.addEventListener('click',go);document.getElementById('rs').addEventListener('click',rs);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>Step-by-Step Chart Reveal — 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}}
.bx{width:min(300px,100%);display:grid;gap:10px}
.ch{height:130px;border-radius:12px;background:var(--surface);border:1px solid var(--line);display:flex;align-items:flex-end;justify-content:space-around;padding:12px 14px 22px;position:relative}
.b{position:relative;width:34px;height:var(--h);transform-origin:50% 100%;transform:scaleY(0);background:#171717;border-radius:6px 6px 0 0;transition:transform .6s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 90ms),background .3s,opacity .3s}
.b.on{transform:none}
.b.dim{background:#cfcfca}
.b.hi{background:#ff5a36}
.b::after{content:attr(data-l);position:absolute;bottom:-18px;left:0;right:0;text-align:center;font-size:11px;color:var(--muted)}
.b i{position:absolute;top:-18px;left:0;right:0;text-align:center;font-style:normal;font-size:11px;font-weight:700;opacity:0;transition:opacity .3s}
.b.hi i{opacity:1}
.cap{min-height:20px;text-align:center;font-size:13px;font-weight:600}
.row{display:flex;gap:6px;justify-content:center}.row button{height:28px;padding:0 16px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:12px;cursor:pointer}
#nx{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}#nx:disabled{opacity:.4}
button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.b,.b i{transition:none}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="ch" id="ch"></div><p class="cap" id="cap" aria-live="polite">Press Next to start.</p><div class="row"><button id="nx" type="button">Next</button><button id="rs" type="button">Restart</button></div></div>
</div>
<script>
const D=[['J',30],['F',42],['M',38],['A',92],['M',60]],ch=document.getElementById('ch'),cap=document.getElementById('cap'),nx=document.getElementById('nx');let step=0;
D.forEach((d,i)=>{const b=document.createElement('div');b.className='b';b.style.setProperty('--h',d[1]+'px');b.style.setProperty('--i',i);b.dataset.l=d[0];b.innerHTML='<i>'+d[1]+'k</i>';ch.append(b);});
const bars=[...ch.children];
function go(){step++;if(step===1){bars.forEach(b=>b.classList.add('on'));cap.textContent='Sign-ups by month';}
else if(step===2){bars.forEach((b,i)=>b.classList.add(i===3?'hi':'dim'));cap.textContent='April stands out';}
else if(step===3){cap.textContent='April doubled sign-ups';nx.disabled=true;}}
function rs(){step=0;bars.forEach(b=>b.className='b');cap.textContent='Press Next to start.';nx.disabled=false;}
nx.addEventListener('click',go);document.getElementById('rs').addEventListener('click',rs);
</script>
</body></html>