저는 CSS 스텝 애니메이션에 대한 질문이 있습니다. 그래서 12 개의 이미지가 있고 애니메이션 GIF와 같은 이미지를 슬라이드하고 싶습니다. 그러나 나는 그것을 성취 할 수 없었다.css3의 애니메이션 이미지
내 데모 : 내가 원하는 http://cssdeck.com/labs/full/9hwv565g
가 : 당신이 나를 http://cssdeck.com/labs/css-image-sprite-animations-with-steps-function
body {
text-align: center;
}
@-webkit-keyframes wink {
from { background-position: 0px; }
to { background-position: -500px; }
}
@-moz-keyframes wink {
from { background-position: 0px; }
to { background-position: -500px; }
}
@keyframes wink {
from { background-position: 0px; }
to { background-position: -500px; }
}
.hi {
width: 120px;
height: 120px;
background-image: url("http://i44.tinypic.com/nq7mrp.png");
margin: 0 auto;
-webkit-animation: wink .8s steps(10, end) infinite;
-moz-animation: wink .8s steps(10, end) infinite;
animation: wink .8s steps(10, end) infinite;
}
도와 드릴까요? 사전
을 수 당신은 "애니메이션 GIF와 같은 슬라이드"에 의해 당신이 의미하는 것을 명확히합니까? 그것은 당신이 현재 미끄럼/방식으로 반복하고있는 것 같습니다 ... – chucknelson
그래서 내 말은 : http://cssdeck.com/labs/css-image-sprite-animations-with-steps-function – aldimeola1122
'background- position '은 이미지의 너비이고'steps' 이미지의 수입니다. –