这是我到目前为止的代码:
body{
font-family: sans-serif;
font-size: 150%;
}
/*Actual Important thing here*/
.fire{
background: -webkit-linear-gradient(yellow, orange,red);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
/*I'll probably add a shadow here later*/
}
<span class="fire">
Some Text Here
</span>
现在,我要对其进行动画处理,以便渐变会闪烁,因此看起来像火焰。
这有可能吗?如果可以,您如何建议我这样做?另外,是否可以在纯CSS 中做到这一点?