티스토리 뷰

공부

[CSS] 글 흔들어 보기

승가비 2018. 2. 23. 13:51
728x90


div {
position: relative;
-webkit-animation: pikamove 0.1s infinite;
-webkit-animation-iteration-count: 9999;
animation: pikamove 3s; animation-iteration-count: 9999;
}
@-webkit-keyframes pikamove {
00% {top: 0; left: 0;}
30% {top: 0; left: 25px;}
60% {top: 0; left: -25px;}
100% {top: 0; left: 0;}
}


728x90
댓글