css - animation color change problem
世界只因有你
世界只因有你 2017-06-28 09:27:36
0
1
1255

This is the initial color value

See demo

for details

But the color value changes after writing the animation effect. What is the reason for this? How can I make the animation color consistent with the initial value

世界只因有你
世界只因有你

reply all(1)
迷茫

The problem lies in using step(2);

animation-timing-function is changed to step(1);
bg method is changed to 0% and 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;
  }
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template