文章详情页
css - animation颜色变化的问题
浏览:146日期: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. javascript - ueditor引入报错问题2. 关docker hub上有些镜像的tag被标记““This image has vulnerabilities””3. html5 - 响应式WEB,媒体查询的问题。4. docker start -a dockername 老是卡住,什么情况?5. angular.js - angular内容过长展开收起效果6. docker容器呢SSH为什么连不通呢?7. boot2docker无法启动8. docker-compose中volumes的问题9. dockerfile - [docker build image失败- npm install]10. nignx - docker内nginx 80端口被占用
排行榜

网公网安备