Text Gradient

Updated: February 6, 2021
Tags:css

Add gradient color to your text with CSS:

text-gradient.html
<p>Text <span>gradient</span> is amazing!</p>
text-gradient.css
span {
  font-size: 40px;

  /* Gradient effect */
  background-color: #3ddc84;
  background: linear-gradient(45deg, #3ddc84, #4285f4);
  background-size: 100%;
  background-repeat: repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
}