文章詳情頁
css3動畫 - css3 animation初始動畫卡頓是怎么回事?
瀏覽:163日期:2023-06-30 18:58:24
問題描述
問題代碼:https://jsfiddle.net/zhoou/qd...
問題解答
回答1:@keyframes tiao{ 0%{ transform: translate(0,0);} 50%{ transform: translate(0,-20px);} 75%{ transform: translate(0,0);} 100%{ transform: translate(0,20px);}}
這么寫,不能在0%的時候就定義-20px,這樣會導(dǎo)致瞬間位移,所以看起來成了你說的卡
回答2:.cir li{ float: left; width: 20px; height: 20px; border-radius: 50%; margin:10px; background: #ccc; line-height: 20px; text-align: center;transform: translate(0,-20px);}
初始的時候加上-20px可以咯!
標簽:
CSS
相關(guān)文章:
1. python 利用subprocess庫調(diào)用mplayer時發(fā)生錯誤2. python文檔怎么查看?3. html - eclipse 標簽錯誤4. python - pycharm 自動刪除行尾空格5. 安全性測試 - nodejs中如何防m(xù)ySQL注入6. 請問PHPstudy中的數(shù)據(jù)庫如何創(chuàng)建索引7. python - Pycharm的Debug用不了8. javascript - 關(guān)于apply()與call()的問題9. javascript - nginx反向代理靜態(tài)資源403錯誤?10. datetime - Python如何獲取當前時間
排行榜

熱門標簽