This seems to be a kind of "gray" area (pun steps()intended ) relative to the time function for animations.
, steps(2, end), - + ( ), + ( ), , , . , , + .
, , , , steps(1, end) + , - + . , , , .
designmodo , , . , , , , steps(n, start), , steps(n, end), . 4- , , ( ).
:
.animated-play-btn {
background-color: white;
height: 50px;
width: 200px;
animation-timing-function: steps(1, end);
animation-duration: 1s;
animation-name: clipping_btn;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
}
@keyframes clipping_btn {
0%, 100% {
background-color: #000;
color: white;
}
50% {
color: black;
background-color: #fff;
}
}
<button class="animated-play-btn">
coucou
</button>
Hide result