我将如何为背景色设置动画?

时间:2020-11-02 19:16:42

标签: html css animation webkit

这是我到目前为止的代码:

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 中做到这一点?

0 个答案:

没有答案