Giving a Gradient Color to Text with CSS
Normally, we set the gradient color transitions as the background as follows.
<div>test</div>
<style>
div {
background: linear-gradient(to right, #cae587 0%,#ea9a75 100%);
}
</style>
If we want to apply this process to the article, we will do as follows;
<div>test</div>
<style>
div {
display: inline-block;
font-size: 70px;
background: linear-gradient(to right, #cae587 0%,#ea9a75 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
</style>
Comments
Popular Articles
Popular Tags
- #directive
- #Function
- #Json
- #Class
- #SASS
- #Form
- #Redirect
- #API
- #Special Characters
- #Special
- #Random
- #Generating
- #
- #Text
- #Ajax
- #URL
- #Encrypting
- #React
- #Show
- #timeAgo
- #PSR-4
- #Hide
- #DDOS Protection
- #DDOS
- #cURL
- #Logic For Displaying Posts
- #Error
- #Key
- #General Error
- #1364 Field
- #Abbreviation
- #Blade
- #Version
- #QR
- #QR Code Generating
- #Array
- #Arrays with Key Values to String Statement
- #Short Tag
- #Activate
- #Real Time
- #Socket.io
- #301
- #Custom Directives
- #Iframe Detection
- #Date
- #Characters
- #Insert
- #Autoloader
- #Composer
- #Reading
There are no comments, make the firs comment