简体   繁体   中英

CSS animation not working in firefox keyframe

<html>
<head>
<title>CHK</title>
<style>
@keyframes a1
{
00% {background-color:red;}
20% {background-image:url(1.jpg);}
50% {background-color:orange;}
70% {background-color:silver;}
98% {background-color:blue;}
100% {background-color:red;}
}
#ida
{
width:200px;
height:200px;
animation-name:a1;
animation-duration:8s;
animation-iteration-count: infinite;
}
</style>
</head>
<body>
<div id="ida">
</div>
</body>
</html>

i am using keyframes this is working fine in chrome but in firefox the image i have used is not being displayed idk what is the reason.... pls take a look thx..

Firefox doesn't support animatable background-image .

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM