How to generate gradients in css3 text

4

Hello I wanted to know how to generate a gradient in a text like the attached image. or if there is a generator on the web to be able to do it

    
asked by MarianoF 22.11.2017 в 13:38
source

1 answer

5

You can use CSS3 for it, with a background using a linear-gradient that, combined with the property -webkit-background-clip: text; and -webkit-text-fill-color: transparent; will do the effect you want.

Example:

#degradado{
  background: linear-gradient(yellow, green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
<h1 id="degradado">ARTIFICIAL</h1>
    
answered by 22.11.2017 / 13:48
source