当动画重置时,动画会出现明显的中断。以下是我的内容:
如何使其顺畅且不可察觉?
@keyframes AnimationName {
0% {
background-position: 100% 0%
}
100% {
background-position: 0% 0%
}
}
.myanimation {
width: 50px;
height: 150px;
background: repeating-linear-gradient(-45deg, #43ABC9, #43ABC9 7px, #369ebc 7px, #369ebc 14px);
animation: AnimationName 2s linear infinite;
background-size: 200% 200%;
}
<div class="myanimation"></div>