Created
May 20, 2022 11:44
-
-
Save smitroshin/b6b234c85051b842c41729f39494b66e to your computer and use it in GitHub Desktop.
CSS Rainbow Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.rainbow-text { | |
background-image: var(--rainbow-gradient,#fff); | |
background-size: 100%; | |
background-repeat: repeat; | |
-webkit-background-clip: text; | |
-webkit-text-fill-color: transparent; | |
-moz-background-clip: text; | |
-moz-text-fill-color: transparent; | |
filter: drop-shadow(0 0 2rem #000); | |
text-shadow: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment