Plugin jQuery: SpriteClip.js : jQuery Frame-by-frame Animations

SpriteClip.js : jQuery Frame-by-frame Animations
http://www.jqueryrain.com/?http://moredots.dk/projects/spriteclip/demos/apidemo.html
https://github.com/wolthers/spriteclip.js
05/06/2013

Nội dung

SpriteClip.js : jQuery Frame-by-frame animations

SpriteClip.js is a jQuery plugin that makes it easy to make snazzy frame-by-frame animations like this by emulating the functionality of the MovieClip class in ActionScript 3.0.

It works by animating the background-image property of a dom node where the “frames” are spaced out equally. Eg. if the sprite is laid out horizontally and each frame is 20px wide, frame 1 will be at background-position: 0 0 and frame 2 will be at background-position: -20px 0


Nguồn: www.jqueryrain.com/2013/06/spriteclip-js-jquery-frame-by-frame-animations/


Chưa có phản hồi
Bạn vui lòng Đăng nhập để bình luận