AI CSS Animations

Spun Aluminum Text

Heavy letters in spun aluminum, the circular brushed finish on premium hardware, with its cross shaped highlight turning slowly. A conic gradient on a registered angle plus fine radial grooves.

Also known as: brushed metal text css, aluminum text effect, metallic text css, brushed steel text.

ALLOY

HTML

<div class="txt-spun-aluminum-text">ALLOY</div>

CSS

@property --txt-spun-aluminum-text-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.txt-spun-aluminum-text {
  --c: var(--txt-color, #3b82f6);
  font-size: calc(var(--txt-size, 32px) * 2);
  font-family: system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.14) 0 0.012em, rgb(0 0 0 / 0.07) 0.012em 0.03em),
    repeating-conic-gradient(from var(--txt-spun-aluminum-text-a) at 50% 50%,
      #f8fafc 0deg, #a3acb9 24deg, color-mix(in srgb, var(--c) 14%, #e2e8f0) 45deg, #6b7380 68deg, #f8fafc 90deg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 0.008em #475569) drop-shadow(0 0.04em 0.03em rgb(15 23 42 / 0.35));
  animation: txt-spun-aluminum-text-turn 9s linear infinite;}
@keyframes txt-spun-aluminum-text-turn {
  to { --txt-spun-aluminum-text-a: 90deg; }
}
@media (prefers-reduced-motion: reduce) {
  .txt-spun-aluminum-text { animation: none; }
}

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