TIL an easy way to make rainbow text
POSTED ON:
This neat trick!
CSS TIP π‘β¨π
— Ale β» (@pokecoder) December 3, 2021
You can create gradient text by tweaking just three simple properties: background-image, color, and background-clip!
CodePen: https://t.co/5VpMsyIE9C pic.twitter.com/qHLIRPDHOn
.gradient-text {
background-image: linear-gradient(45deg, blue, red);
color: transparent;
-webkit-background-clip: text;
}
See the Pen Gradient Text by Ale (@pokecoder) on CodePen.
Related TILs
Tagged: css