AI CSS Animations

Letters Zoom In Text Effect

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.

Big reveal

HTML

<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">&nbsp;</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>

CSS

.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;
  }
}

Customizing this snippet

  • Color: set --txt-color on the element or a parent. Currently previewing #3b82f6.
  • Font size: set --txt-size. Every other dimension is in em, so the whole thing scales together. Currently previewing 40px.
  • Speed: change the duration on the transition or animation shorthand. Staggered delays are relative, so they keep their rhythm.
  • Reduced motion: the rule at the end of the CSS turns the motion off for people who asked their OS for less of it. Keep it.

Similar text animations