我发现Animate.css网站包含带渐变动画的标题但渐变动画仅适用于Chrome,它没有其他浏览器的css动画属性。其他浏览器是否支持此功能?如果答案是肯定的,那么可以添加哪些其他属性。这里代码:
<h1 class="site__title mega">Animate.css</h1>
.site__title {
color: #f35626;
background-image: -webkit-linear-gradient(92deg,#f35626,#feab3a);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-animation: hue 60s infinite linear;
}
@-webkit-keyframes hue {
from {
-webkit-filter: hue-rotate(0deg);
}
to {
-webkit-filter: hue-rotate(-360deg);
}
}