애니메이션 채우기 모드로 애니메이션을 전환 한 후 전환이 작동하지 않습니다. 전달; 첫 번째 애니메이션은 시작되고 마우스를 올리면 끝나지만 건너 뛰기가 끝난 후 전환이 적용되지 않습니다.
Codepen here
그것은 크롬 사파리 재생한다. 파이어 폭스에서 잘 작동합니다.
퍼그 :
button Button
하는 SCS :
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
button {
padding: 5px 0;
position: relative;
border: none;
border-radius: 0;
background: transparent;
outline: none;
cursor: pointer;
font-weight: 700;
text-transform: uppercase;
&:before {
content: '';
position: absolute;
bottom: 0;
left: 100%;
right: 0;
height: 4px;
border-radius: 2px;
background: blue;
transition: all .25s;
}
&:hover {
&:before {
animation: nav-link-hover .25s forwards;
}
}
}
@keyframes nav-link-hover {
0% {
left: 0;
right: 100%;
}
100% {
left: 0;
right: 0;
}
}
UPDATE 내가 해결 방법을 찾았지만 더 나은 또는 예를 들어있을 것입니다 경우 이용 약관을 읽고 동의를 기꺼이 어떤 응답을 기다립니다 것이다
성공적으로 깨진 키 프레임을 사용합니다.