Skip to content

Instantly share code, notes, and snippets.

@kaitoukid-1412
Created July 3, 2025 14:07
Show Gist options
  • Select an option

  • Save kaitoukid-1412/5e482dc9c70724490a2190b32a778d53 to your computer and use it in GitHub Desktop.

Select an option

Save kaitoukid-1412/5e482dc9c70724490a2190b32a778d53 to your computer and use it in GitHub Desktop.
.chroma-text {
background-image: linear-gradient(90deg,#000000 0,#000000 33.33%,#c679c4 40%,#fa3d1d 45%,#ffb005 50%,#e1e1fe 55%,#0358f7 60%,transparent 66.67%,transparent);
background-size: 300% 100%;
background-position: 100% 0;
will-change: background-position;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-fill-color: transparent;
color: transparent
}
.chroma-text-animate {
animation: chroma-sweep .9s ease-in-out .1s forwards;
filter: blur(1px)
}
@keyframes chroma-sweep {
0% {
background-position: 100% 0;
filter: blur(1px)
}
to {
background-position: 0 0;
filter: blur(0)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment