Gives text a gradient color.
HTML
<h1 class="gradient-text">Gradient text</h1>
CSS
.gradient-text {
font-size: 100px;
background: -webkit-linear-gradient(pink, red);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
}
Demo
Top comments (0)