+ 1

How to apply linear-gradient to the text?

Using CSS3, linear-gradient.

31st May 2017, 5:58 PM
Илья Карпенко UA
Илья Карпенко UA - avatar
3 Respuestas
+ 19
h2{ background: -webkit-linear-gradient(red, yellow); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
31st May 2017, 6:09 PM
Dev
Dev - avatar
+ 7
<< @Dayve And if the text has already gradient background? >> Set a parent container to it, apply background gradient to parent, and text and its gradient to child ^^ <div class="myBGgradient"><div class="myTXTgradient">some text</div></div>
1st Jun 2017, 4:53 AM
visph
visph - avatar
+ 2
@Dayve And if the text has already gradient background?
31st May 2017, 8:04 PM
Илья Карпенко UA
Илья Карпенко UA - avatar