一辆在 4 秒内从 div 左侧跳到右侧的汽车。它适用于除 safari 之外的所有浏览器。
我应该怎么做才能让它在 safari 上运行?
#left {
padding-top: 6px;
height: 19px;
width: 45px;
position: absolute;
background-color: white;
right: 90%;
transition: right 4s ease-in;
-webkit-transition: right 4s ease-in;
}
#right {
position: absolute;
right: 10px;
background-color: white;
background-image: url('img/paal_sprite.gif');
background-repeat: no-repeat;
background-position: 0px 0;
transition: background-position 0s linear 4s;
-webkit-transition: background-position 0s linear 4s;
width: 10px;
height: 30px;
}
#left.animate {
right: +20px;
}
#right.animate {
background-position: -12px 0;
}
#container {
position: relative;
overflow:hidden;
height: 25px;
visibility: visible;
}