【发布时间】:2013-03-29 03:19:21
【问题描述】:
好的菜鸟。需要此圆圈在动画开始时(旋转时)缩放和淡入一次,然后继续旋转。没那么难吧!?! fade 和 spin 工作,但 scale 只是拒绝工作!
某处有胖手指吗?在我撕掉我剩下的头发之前,请暴露我的菜鸟以及为什么 SCALE 不起作用?谢谢,仅此而已...
仅限最新 FF。 (懒得为其他所有东西编写代码。)
<!DOCTYPE html>
<html>
<head>
<style>
div
{width: 100px;
height: 100px;
background: transparent;
border: solid 10px blue;
border-radius: 50%;
border-top: solid 10px transparent;
border-bottom: solid 10px transparent;
-moz-animation-name: scaleIn,fadeIn,spin;
-moz-animation-duration: 1s,1s,1s;
-moz-animation-timing-function: ease-in,ease-in,linear;
-moz-animation-delay: 0,0,0;
-moz-animation-iteration-count: 1,1,infinite;
-moz-animation-direction: normal,normal,normal;
-moz-animation-fill-mode: forwards,forwards,forwards;
-moz-animation-play-state: running,running,running;}
@-moz-keyframes scaleIn
{
from {-moz-transform: scale(2);}
to {-moz-transform: scale(1);}
}
@-moz-keyframes fadeIn
{
from {opacity: 0.0;}
to {opacity: 1.0;}
}
@-moz-keyframes spin
{
from {-moz-transform: rotate(0deg);}
to {-moz-transform: rotate(360deg);}
}
</style>
</head>
<body>
<div></div>
</body>
</html>
【问题讨论】:
标签: css scale css-transforms css-animations