Created
July 29, 2021 20:00
-
-
Save design-innovations/dd0edcb2a52d2cc7e6bcba434747b167 to your computer and use it in GitHub Desktop.
CSS - RGB Rainbow Background
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
.rgb::after { | |
content:""; | |
background: linear-gradient(45deg, | |
#ff0000 0%, | |
#ff9a00 10%, | |
#d0de21 20%, | |
#4fdc4a 30%, | |
#3fdad8 40%, | |
#2fc9e2 50%, | |
#1c7fee 60%, | |
#5f15f2 70%, | |
#ba0cf8 80%, | |
#fb07d9 90%, | |
#ff0000 100% ) | |
repeat 0% 0% / 300% 100%; | |
position: absolute; | |
inset: -3px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment