I'm trying to create an infinite animation that sequentially changes colors of border sides (travelling around). I cant figure out the unwanted delays / jumps at the beginning of the each repetition.
#neki {
padding:10px;
border: 6px solid #dcdcdc;
animation: example 1s infinite;
}
@keyframes example {
0% {
border-color: #dcdcdc;
}
25% {
border-left-color: red;
}
50% {
border-top-color: red;
}
75% {
border-right-color: red;
}
100% {
border-bottom-color: red;
}
}
<br>
<span id="neki">awdawdawdwdawda</span>