나는 CSS 애니메이션을 사용하여 360도에서 무한 원을 <div>
으로 돌리고 있습니다. 매 회전 후, 다음 회전 전에 5 초의 정지 또는 지연이 필요합니다. 어떻게 구현할 수 있습니까?CSS 애니메이션 순환 사이에 지연을 추가하는 방법
코드는 다음과 같습니다.
CSS
.circle{
position: absolute;
top: 4;
right: 4;
height: 21px;
width: 21px;
border-radius: 50%;
background: #00B5F9;
color: white;
font-family: varela round;
font-size: 11;
font-weight: 500;
border: 1px solid white;
-webkit-animation-name: lol;
-webkit-animation-duration: 1s;
-webkit-animation-timing-function: ease-in-out;
-webkit-animation-iteration-count: infinite;
-webkit-animation-delay: 1s
}
@-webkit-keyframes lol {
0% { -webkit-transform:rotate(0deg) }
100% { -webkit-transform:rotate(360deg) }
}
HTML
<div class="circle">56</div>
이 품질 보증은에 언급 된 것보다 훨씬 깨끗합니다. – themefield