When using Animation.css, I found that the font of its official website would change gradually. I took a look at its css and it was very interesting. .site__title { color: #f35626; background-image: -webkit-linear-gradient(92deg, #f35626, #feab3a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; -webkit-animation: hue 60s infinite linear; } @-webkit-keyframes hue { from { -webkit-filter: hue-rotate(0deg); } to { -webkit-filter: hue-rotate(-360deg); } } Here we use -webkit-background-clip: text to crop the background image and leave only the text part. Then use -webkit-text-fill-color: transparent to set the text fill color to transparent Use hue animation to adjust the hue from 0deg to -360deg within 60s to achieve the effect of font color changing over time. This is the end of this article about how to use CSS3 to implement font color gradient. For more relevant CSS3 font color gradient content, please search 123WORDPRESS.COM’s previous articles or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! |
<<: React implements a general skeleton screen component example
>>: Sitemesh tutorial - page decoration technology principles and applications
background All of the company's servers are p...
Hardware View Commands system # uname -a # View k...
Table of contents Preliminary work Backend constr...
Table of contents 1. Set Deduplication 2. Double ...
First, let me briefly introduce what MySQL is; In...
MySQL is easy to install, fast and has rich funct...
Copy code The code is as follows: <html> &l...
1. Installation and use First, install it in your...
Table of contents 1. Structural instructions Modu...
Preface As we all know, everything in Linux is a ...
Table of contents Method 1: Routing meta informat...
Method 1: Install the plugin via npm 1. Install n...
When developing a web project, you need to instal...
Part 3: ❤Three ways to overlook backend data rece...
1. Use the <a> tag to complete <a href=&...