0
이 게임에서 : https://jsfiddle.net/3e5sqe36/1 고정 위치 div에서 애니메이션을 사용하려고하지만 div에 애니메이션을 적용하면 뷰포트 상단에서 밀어냅니다.어떻게 고정 된 CSS 애니메이션을 만들 수 있습니까?
나는이 질문을 발견했다. How do I use CSS animations to slide a fixed position element from the bottom of the page to the top? 애니메이션의 시작 키 프레임에 "왼쪽 하단"을 적용하려고 시도했지만 그게 나에게도 효과가없는 것 같다.
이.animated {
-webkit-animation-name: pulse;
-webkit-animation-duration: .1s;
-webkit-animation-iteration-count: inifinite;
animation-name: pulse;
animation-duration: .1s;
animation-iteration-count: infinite;
}
@-webkit-keyframes pulse {
0% { -webkit-transform: scale(1); }
50% { -webkit-transform: scale(1.1); }
100% { -webkit-transform: scale(1); }
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
.pulse {
-webkit-animation-name: pulse;
animation-name: pulse;
}
확인 [이] (https://jsfiddle.net/3e5sqe36/3 /) – Alex
고마워! 나는 거기에 선을 추가하는 것을 생각하지 않았다, 그것은 많이 도움이된다. – pequaad