@keyframes plusRotate
{
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
green
{
color: #00933B;
animation-name: p1Eat, p1FadeInC, plusRotate;
animation-delay: 10.9s, 15.3s, 21s;
animation-duration: .1s, .7s, .3s;
animation-fill-mode: forwards;
animation-timing-function: linear, linear, linear;
animation-iteration-count: 1, 1, 16;
}
我想讓它在「plusRotate」的最後一次迭代中旋轉變慢。 我嘗試添加一個單獨的動畫1次迭代,具有更長的持續時間,但它不旋轉!基本上我認爲它打破了某種程度。如何減慢CSS中這個旋轉動畫的最後幾次迭代?
我的代碼的其餘部分工作正常,唯一的問題是我想要「+」(字符加)旋轉的部分。現在,他們旋轉罰款。唯一的問題是,因爲它們被設置爲
animation-timing-function: linear
我可以設置動畫計時以任何方便的功能,他們不減速至停止,但隨後每次迭代中簡化。我希望它不斷旋轉,只在最後旋轉時緩解。任何想法如何做到這一點?
我已經嘗試過這樣做,但隨後的長處不旋轉可言:
@keyframes plusRotate
{
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
@keyframes plusRotateEnd
{
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
green
{
color: #00933B;
animation-name: p1Eat, p1FadeInC, plusRotate, plusRotateEnd;
animation-delay: 10.9s, 15.3s, 21s, 25.8s;
animation-duration: .1s, .7s, .3s, .5s;
animation-fill-mode: forwards;
animation-timing-function: linear, linear, linear, ease-out;
animation-iteration-count: 1, 1, 15, 1;
}