CSS - Text Shadow Gradient

I want to create a shadow shadow of a gradient (like this) Can I do this with CSS or / and Javascript? Thanks for the help.enter image description here

+4
source share
1 answer

You can try it using linear gradient, as in the example snippet below. Please note that this does not work in Internet Explorer and Edge. I have successfully tested it in Chrome, Firefox, and Opera and am not able to test it using Safari.

 div {
    font-size: 128px;
    background: linear-gradient(90deg, #ff0000 5%, #00B053 15%, #1BAADA 30%);
    -webkit-background-clip: text;
    -webkit-text-stroke: 12px transparent;
    color: #000; 
 } 
<div>
   Text
</div>
Run codeHide result
+4
source

Source: https://habr.com/ru/post/1683226/


All Articles