Text Reveal Styles
Four ways a headline can appear: masked slide-up, blur-in, typewriter and scale pop; replay each on demand.
AI prompt
Kinetic title animation, 3 seconds, the words "Make it move" on a clean off-white background, each word sliding up from behind an invisible mask line with an 80 millisecond stagger, smooth ease-out, bold geometric sans-serif in near-black, generous letter spacing, hold the full title for one second at the end. Reveal variants: blur-in (words fade from heavy blur to sharp), typewriter (letters appear one by one with a blinking cursor), scale pop (words pop from 80 percent size with a small overshoot). Keep spelling exact. Negative: jitter, random letter swaps, drop shadows, glitch effects, extra text.About this pattern
Definition
A text reveal is the way words enter the frame. The style sets the tone: masked slide-ups feel editorial, blur-ins soft and cinematic, typewriters technical, scale pops playful.
When to use it
- Match the reveal to the message: calm statements get blur or mask, urgent ones get pops or cuts.
- Reveal word by word or line by line so the eye can follow; keep the total under about 1.2 seconds for titles.
- State the reveal, the unit (letter, word, line) and the timing in prompts.
What the controls do
- Four style buttons replay the headline with that reveal.
Motion & timing
- Mask: 500ms ease-out per word with 80ms stagger. Blur: 600ms. Typewriter: 45ms per character. Pop: 380ms with slight overshoot.
- Reduced motion: the text appears instantly with no movement.
Tips & variations
- Long headlines should reveal by line, not by letter, on small screens.
- Hold the finished text still for at least one second so it can be read.
Code of this live preview
<div class="bx"><div class="tt" id="tt" aria-live="polite"></div><div class="pre" id="pre" role="group" aria-label="Reveal style"><button data-s="mask">Mask</button><button data-s="blur">Blur</button><button data-s="type">Typewriter</button><button data-s="pop">Pop</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:12px}
.tt{height:92px;border-radius:12px;background:var(--surface);border:1px solid var(--line);display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:0 10px;font-size:30px;font-weight:700;letter-spacing:-.02em;padding:8px}
.w{display:inline-block;overflow:hidden;vertical-align:top}
.w>span{display:inline-block}
.mask>span{animation:mk .5s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i) * 80ms)}
@keyframes mk{from{transform:translateY(110%)}}
.blur>span{animation:bl .6s ease-out both;animation-delay:calc(var(--i) * 120ms)}
@keyframes bl{from{filter:blur(12px);opacity:0}}
.pop{overflow:visible}.pop>span{animation:pp .38s cubic-bezier(.3,1.5,.5,1) both;animation-delay:calc(var(--i) * 110ms)}
@keyframes pp{from{transform:scale(.8);opacity:0}}
.cur{display:inline-block;width:2px;height:28px;background:var(--text);margin-left:2px;animation:cb 1s steps(2) infinite}
@keyframes cb{50%{opacity:0}}
.pre{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.pre button{height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:11px;cursor:pointer;padding:0}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.w>span,.cur{animation:none!important}}const tt=document.getElementById('tt'),bs=[...document.querySelectorAll('#pre button')],TXT='Make it move',reduce=matchMedia('(prefers-reduced-motion: reduce)').matches;let tm=0;
function show(k){clearInterval(tm);bs.forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.s===k)));tt.innerHTML='';tt.setAttribute('aria-label',TXT);
if(k==='type'){const sp=document.createElement('span');sp.setAttribute('aria-hidden','true');const c=document.createElement('i');c.className='cur';tt.append(sp,c);if(reduce){sp.textContent=TXT;return;}let i=0;tm=setInterval(()=>{sp.textContent=TXT.slice(0,++i);if(i>=TXT.length)clearInterval(tm);},45);return;}
TXT.split(' ').forEach((w,i)=>{const o=document.createElement('span');o.className='w '+k;o.style.setProperty('--i',i);const s=document.createElement('span');s.textContent=w;s.setAttribute('aria-hidden','true');o.append(s);tt.append(o);});}
bs.forEach(b=>b.addEventListener('click',()=>show(b.dataset.s)));show('mask');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>Text Reveal Styles — 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:12px}
.tt{height:92px;border-radius:12px;background:var(--surface);border:1px solid var(--line);display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:0 10px;font-size:30px;font-weight:700;letter-spacing:-.02em;padding:8px}
.w{display:inline-block;overflow:hidden;vertical-align:top}
.w>span{display:inline-block}
.mask>span{animation:mk .5s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i) * 80ms)}
@keyframes mk{from{transform:translateY(110%)}}
.blur>span{animation:bl .6s ease-out both;animation-delay:calc(var(--i) * 120ms)}
@keyframes bl{from{filter:blur(12px);opacity:0}}
.pop{overflow:visible}.pop>span{animation:pp .38s cubic-bezier(.3,1.5,.5,1) both;animation-delay:calc(var(--i) * 110ms)}
@keyframes pp{from{transform:scale(.8);opacity:0}}
.cur{display:inline-block;width:2px;height:28px;background:var(--text);margin-left:2px;animation:cb 1s steps(2) infinite}
@keyframes cb{50%{opacity:0}}
.pre{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.pre button{height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:11px;cursor:pointer;padding:0}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.w>span,.cur{animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="tt" id="tt" aria-live="polite"></div><div class="pre" id="pre" role="group" aria-label="Reveal style"><button data-s="mask">Mask</button><button data-s="blur">Blur</button><button data-s="type">Typewriter</button><button data-s="pop">Pop</button></div></div>
</div>
<script>
const tt=document.getElementById('tt'),bs=[...document.querySelectorAll('#pre button')],TXT='Make it move',reduce=matchMedia('(prefers-reduced-motion: reduce)').matches;let tm=0;
function show(k){clearInterval(tm);bs.forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.s===k)));tt.innerHTML='';tt.setAttribute('aria-label',TXT);
if(k==='type'){const sp=document.createElement('span');sp.setAttribute('aria-hidden','true');const c=document.createElement('i');c.className='cur';tt.append(sp,c);if(reduce){sp.textContent=TXT;return;}let i=0;tm=setInterval(()=>{sp.textContent=TXT.slice(0,++i);if(i>=TXT.length)clearInterval(tm);},45);return;}
TXT.split(' ').forEach((w,i)=>{const o=document.createElement('span');o.className='w '+k;o.style.setProperty('--i',i);const s=document.createElement('span');s.textContent=w;s.setAttribute('aria-hidden','true');o.append(s);tt.append(o);});}
bs.forEach(b=>b.addEventListener('click',()=>show(b.dataset.s)));show('mask');
</script>
</body></html>