CSS3 Text Gradients not working?

后端 未结 4 886
天命终不由人
天命终不由人 2021-01-29 09:15

I am trying to apply pure CSS3 Gradients (no images, etc.) on some text but the text remains un-changed.

My current code is:





        
4条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 09:43

    I recommend you to use -prefix-free if you are using lots of CSS3. This allows you to skip all browser prefixes, and the library will add all necessary prefixes at run time.

    Your style would look like this if you use it:

    .gradient {
            mask-image: gradient(linear, left top, left bottom, color-stop(0%,rgba(252,255,244,1)), color-stop(100%,rgba(233,233,206,1)));
        }
    

提交回复
热议问题