Answers for "how to set linear gradient on font css"

CSS
8

how to apply linear gradient to text in css

.gradient-text {
    background-color: #f3ec78;
    background-image: linear-gradient(45deg, #f3ec78, #af4261);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-text-fill-color: transparent;
}
Posted by: Guest on May-07-2020

Browse Popular Code Answers by Language