好的,這真的讓我感到沮喪,首先,如果我的問題框架是錯誤的,請編輯它(如果你這麼認爲)...並確定,因爲我的屏幕會解釋你,但我仍然希望我的元素應該保持特定的形狀,不要隨着動畫一起旋轉,我錯過了一些非常愚蠢的事情?防止元素在圓形CSS3動畫中自行旋轉
我想要的東西:
發生了什麼:
jQuery的解決方案,歡迎(但我很想CSS3解決方案)
注意:不要去對元素的不透明度用油漆和 其他與Photoshop,什麼事的是方應旋轉,廣場 形狀,1是由
HTML
<div><span></span></div>
CSS
@keyframes round_round {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
div {
width: 50px;
height: 50px;
animation: round_round 3s linear infinite;
margin: 50px auto 0;
transform-origin: 50% 150px;
background-color: #8FC1E0;
}
span {
display: inline-block;
margin: 5px;
height: 5px;
width: 5px;
background: #c00000;
}
現在這樣的作品,真棒......順便說一句只是確保你在你的答案(http://jsfiddle.net/s7Bsn/3/)加一把小提琴,順便說一句沒有必要'絕對' –