호버 해제 후 요소의 원래 값으로 애니메이션을 쉽게 만들려고합니다. 애니메이션 그 자체는 괜찮습니다. 하지만 요소를 가져 가면 원래 상태 인 으로 즉각적으로으로 되돌아갑니다. 반면에은 0.230 입니다. 어떤 도움이 필요합니까?CSS @keyframe 애니메이션 용이함
img.footer {
filter: grayscale(1);
-webkit-filter: grayscale(1);
animation-timing-function: ease-out; /*this is what i have tried*/
-webkit-animation-timing-function: ease-out; /*this is what i have tried*/
}
@keyframes flash {
0% {
filter: grayscale(1);
-webkit-filter: grayscale(1);
}
6% {
filter: grayscale(0) brightness(1.2);
-webkit-filter: grayscale(0) brightness(1.2);
}
33%, 100% {
filter: grayscale(0) brightness(1);
-webkit-filter: grayscale(0) brightness(1);
}
}
img.footer:hover {
animation-name: flash;
animation-duration: 0.999s;
animation-fill-mode: forwards;
animation-timing-function: ease-out; /*this is what i have tried*/
-webkit-animation-timing-function: ease-out; /*this is what i have tried*/
}
https://codepen.io/anon/pen/OzVPJb –