Conic Spin

Gradient Fill · Animated · pure CSS

A conic gradient clipped to the letters that rotates forever using an animated @property angle. A modern, hypnotic color wheel through your text.

Conic Spin

CSS

/* Conic Spin — generated with TEXT-FX
 * HTML: just put the class on any element.
 * Font: 'Space Grotesk', sans-serif (load from Google Fonts).
 */

@property --text-effect-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.text-effect {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  letter-spacing: -1px;
  text-transform: none;
}

.text-effect {
  --text-effect-angle: 0deg;
  background: conic-gradient(from var(--text-effect-angle), hsl(214 95% 60%), hsl(286 95% 58%), hsl(358 95% 62%), hsl(70 95% 58%), hsl(142 95% 60%), hsl(214 95% 60%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 12px hsl(214 90% 55% / 0.45));
  animation: text-effect-spin 5.0s linear infinite;
}

@keyframes text-effect-spin {
  to { --text-effect-angle: 360deg; }
}

Pure CSS — just add the .text-effect class to any element.

Category
Gradient Fill
Type
Animated
Browser support
background-clip:text + animated @property <angle>
Capabilities
property

Related Gradient Fill effects