I want to apply shining text effect (https://codepen.io/fazlurr/pen/qbWMRv)
.shine {
// set background
background: #222 -webkit-gradient(linear, left top, right top, from(#222), to(#222), color-stop(0.5, #fff)) 0 0 no-repeat;
-webkit-background-size: 150px;
color: $text-color;
-webkit-background-clip: text;
-webkit-animation-name: shine;
-webkit-animation-duration: $duration;
-webkit-animation-iteration-count: infinite;
text-shadow: 0 0px 0px rgba(255, 255, 255, 0.5);
}
and gradient text (https://cssgradient.io/blog/css-gradient-text/)
h1 {
font-size: 72px;
background: -webkit-linear-gradient(#eee, #333); // set background
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
at the same time. The color for shining text and gradient text are different. I saw both effect need to set background and "-webkit-background-clip: text", so I can't achieve the desirable result (setting background for one override another). Is there any way to apply these 2 effects at the same time?