제가 알 수 있듯이 짝수 및 홀수의 nth 유형에 지연을 적용하고 있지만 문제는 지연이 항상 중요하다는 것입니다. 뭐. 따라서 홀수 일 경우 10 초, 짝수 일 경우 3 초, 모든 링크는 10 초입니다. nth-of-type()
-selector이 같은 부모 요소의 내부 형태의 n 번째 자식 인 모든 요소와 일치합니다CSS 애니메이션 지연이 모든 요소에 적용되지 않습니다.
a {
position: relative;
line-height: 200%;
display: inline-block;
text-transform: uppercase;
font-size: $header-link-size;
transform: scale(0);
animation: scaleIn .5s;
animation-fill-mode: both;
&:nth-of-type(even) {
animation-delay: 2s;
}
&:nth-of-type(odd) {
animation-delay: 3s;
}
@keyframes scaleIn {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}
}
CSS는 당신은 당신의 관련 HTML을 제공 할 수있다, 잘 작동하는 것 같다? – Marvin
@ Marvin, http://codepen.io/anon/pen/ygoyQL 링크의 애니메이션 지연을 확인하면 여전히 동일하게 나타납니다. –