AI CSS Animations

Spin In Text with Motion Blur

The title spins in on its vertical axis for three turns, blurred at speed and sharpening as it slows to a stop facing you. Plays once: rotateY, scale and blur on one long ease-out.

Also known as: 3d spin in text, spinning text entrance css, rotate in blur text.

TURBO

HTML

<div class="txt-spin-in-blur-text">TURBO</div>

CSS

.txt-spin-in-blur-text {
  --c: var(--txt-color, #3b82f6);
  font-size: calc(var(--txt-size, 32px) * 1.6);
  font-family: system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.2;
  display: inline-block;
  color: var(--c);
  letter-spacing: 0.03em;
  animation: txt-spin-in-blur-text-spin 1.8s cubic-bezier(0.15, 0.85, 0.3, 1) both;}
@keyframes txt-spin-in-blur-text-spin {
  0%   { opacity: 0; transform: perspective(10em) rotateY(-1080deg) scale(0.4); filter: blur(0.2em); }
  15%  { opacity: 1; }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: perspective(10em) rotateY(0deg) scale(1); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .txt-spin-in-blur-text, .txt-spin-in-blur-text *, .txt-spin-in-blur-text::before, .txt-spin-in-blur-text::after, .txt-spin-in-blur-text *::before, .txt-spin-in-blur-text *::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