我是一个网站上的螺旋桨动画设计师。
http://bug.soulmates.company(请参见第3节)。
但即使我将样式设置为:
螺旋桨在旋转时不能保持在原位。
http://bug.soulmates.company(请参见第3节)。
但即使我将样式设置为:
.propeller_spin {
animation-name: spin;
animation-duration: 4000ms;
animation-iteration-count: infinite;
transform-origin: center center;
}
@keyframes spin {
from {
transform:rotate(0deg);
transform-origin: center center;
}
to {
transform:rotate(360deg);
transform-origin: center center;
}
}
螺旋桨在旋转时不能保持在原位。
.propeller_spin {transform-box: fill-box;}
代码。MDN链接 - transform-box - enxaneta