Letters grow up out of the baseline one after another, stretching a little too tall and then settling with a squash. Only scale changes, from a bottom transform-origin, so layout never moves.
Also known as: letters grow up animation, scale y text reveal, sprouting text effect.
<div class="txt-growing-letters" aria-label="Grow faster"><span style="--i: 0">G</span><span style="--i: 1">r</span><span style="--i: 2">o</span><span style="--i: 3">w</span><span style="--i: 4"> </span><span style="--i: 5">f</span><span style="--i: 6">a</span><span style="--i: 7">s</span><span style="--i: 8">t</span><span style="--i: 9">e</span><span style="--i: 10">r</span></div>
.txt-growing-letters {
--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-growing-letters span {
display: inline-block;
transform-origin: 50% 100%;
animation: txt-growing-letters-grow 0.8s calc(var(--i) * 55ms) both;
}
@keyframes txt-growing-letters-grow {
0% { transform: scale(1.15, 0); animation-timing-function: cubic-bezier(0.3, 0, 0.4, 1); }
50% { transform: scale(0.88, 1.22); animation-timing-function: ease-in-out; }
72% { transform: scale(1.06, 0.92); animation-timing-function: ease-in-out; }
88% { transform: scale(0.98, 1.03); }
100% { transform: scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
.txt-growing-letters, .txt-growing-letters *, .txt-growing-letters::before, .txt-growing-letters::after, .txt-growing-letters *::before, .txt-growing-letters *::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.