문제

I have a spritesheet with multiple rows of sprites. My keyframes work fine but for the timing function.

There are 39 sprites and so I need 39 steps without "tweening", however despite correct syntax my stepping time function is ignored.

animation: gem 10s steps(39) infinite;

Here is a jsfiddle. http://jsfiddle.net/Hd5Qy/

도움이 되었습니까?

해결책

Ok, I have found that timing functions are "per frame" so by setting the steps to 1, it would only show a single frame and then the next without tweening.

animation: gem 10s steps(1) infinite;

Check this update: http://jsfiddle.net/krazyjakee/Hd5Qy/5/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top