Enea Xharja

Text Gradient

Add gradient color to your text with CSS:

<p>Text <span>gradient</span> is amazing!</p>
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;

Updated on February 06, 2021

Tagged with: css, snippets

Profile picture

Hey there! I'm Enea, a Web Developer at EQOLOT in Berlin. Welcome to my little corner of the web, where I share my personal collection of notes, code snippets, and resources on topics that interest me.

© 2022 Enea Xharja