How to use css to realize text gradient
This article is about how to use css to implement text gradients. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Text gradient
Text gradients are very popular, and you can easily achieve them with CSS3:
H3 [data-text] {position: relative;} h3 [data-text]:: after {content: attr (data-text); z-index: 10; color: # e3e3e3; position: absolute; top: 0; left: 0There are webkit-gradient (linear, left top, left bottom, from (rgba), color-stop (50%, rgba), to (rgba). Thank you for reading! On "how to use css to achieve text gradient" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!