我想知道爲什麼我的彈跳動畫在JSFiddle沒有工作,但在我的開發網站工作。請檢查這個有什麼問題。在我的開發網站中,箭頭反彈但不像我的css類中告訴的那樣旋轉。CSS動畫不起作用(反彈)
.active.ongoing::before {
content: "\f175";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
color: #56a4da;
font-size: 28px;
padding-right: 0.5em;
position: absolute;
top: 31px;
transform: rotate(41deg);
animation: bounce 2s infinite;
-moz-animation:bounce 2s infinite;
-ms-animation:bounce 2s infinite;
-webkit-animation: bounce 2s infinite;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css" rel="stylesheet"/>
<div class="active ongoing">
</div>
你讓你的@keyframes動畫彈跳? –
@NelsonTan,不,它會自動反彈而不使用@keyframes。 – claudios