文章詳情頁
css - animation顏色變化的問題
瀏覽:147日期:2023-06-15 16:13:55
問題描述

這是初始顏色值
具體看demo
但是寫上動畫效果后顏色值就變了,這個是什么原因,怎么可以讓動畫顏色和初始值顏色一致
問題解答
回答1:問題出在使用了step(2);
animation-timing-function改成step(1);bg方法改成0%和50%;
.min-circle:nth-child(2n - 1) { -webkit-animation: bg 2s steps(1) infinite; animation: bg 2s steps(1) infinite;}@keyframes bg { 0% { background: #ff3c18; } 50% { background: #ffea67; }}
標簽:
CSS
相關文章:
1. boot2docker無法啟動2. 關docker hub上有些鏡像的tag被標記““This image has vulnerabilities””3. docker-compose中volumes的問題4. nignx - docker內nginx 80端口被占用5. docker安裝后出現Cannot connect to the Docker daemon.6. java - SSH框架中寫分頁時service層中不能注入分頁類7. golang - 用IDE看docker源碼時的小問題8. docker images顯示的鏡像過多,狗眼被亮瞎了,怎么辦?9. javascript - mock.js可以存儲數據嗎10. docker api 開發的端口怎么獲取?
排行榜

網公網安備