Each letter rushes in from several times its size, blurred, and snaps into place with an expo ease-out. Reads like the letters are flying at the screen and landing on the page, one by one.
Also known as: puff in text, zoom in letters css, letters fly toward screen.
<div class="txt-letters-zoom-in-blur" aria-label="Big reveal"><span style="--i: 0">B</span><span style="--i: 1">i</span><span style="--i: 2">g</span><span style="--i: 3"> </span><span style="--i: 4">r</span><span style="--i: 5">e</span><span style="--i: 6">v</span><span style="--i: 7">e</span><span style="--i: 8">a</span><span style="--i: 9">l</span></div>
.txt-letters-zoom-in-blur {
--c: var(--txt-color, #3b82f6);
font-size: var(--txt-size, 32px);
font-family: system-ui, sans-serif;
font-weight: 700;
line-height: 1.2;
color: var(--c);
white-space: nowrap;}
.txt-letters-zoom-in-blur span {
display: inline-block;
animation: txt-letters-zoom-in-blur-land 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 70ms) both;
}
@keyframes txt-letters-zoom-in-blur-land {
0% { opacity: 0; transform: scale(3.2); filter: blur(0.12em); }
25% { opacity: 1; }
100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
.txt-letters-zoom-in-blur, .txt-letters-zoom-in-blur *, .txt-letters-zoom-in-blur::before, .txt-letters-zoom-in-blur::after, .txt-letters-zoom-in-blur *::before, .txt-letters-zoom-in-blur *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}--txt-color on the element or a parent.
Currently previewing #3b82f6.--txt-size. Every other dimension is in
em, so the whole thing scales together. Currently previewing 40px.transition or animation
shorthand. Staggered delays are relative, so they keep their rhythm.