AnimageImage 1.1
Details
- Author
- Arian Stolwijk
- Current version
- 1.1
- GitHub
- arian/animateImage
- Downloads
- 2036
- Category
- Effects
- Tags
- Report
- GitHub Issues
How to use
Syntax
var myAnimation = new Animate(url [,options]);
Arguments
- url - (string) the url of the image.
- options - (options, optional) the options for the animation
Options
- width: (int) The width of the image viewport
- height: (int) The height of the image viewport
- rows: (int: default 1) The number of rows
- cols: (int: default 7) The number of columns
- fps: (int: default 24) Frames Per Second
- autostart: (bool: default true) Should the animation start automatically
Returns:
- (object) A new AnimateImage instance.
Example:
Morphing using an object:
var myAnimation = new AnimateImage('gnome-spinner.png',{
width: 22,
height: 22,
rows: 5,
cols: 7,
fps: 10
});
$(myAnimation).inject($('spinner'));
Requirements
- MooTools Core 1.2.4: Element.Style, Class.Extras (and their dependencies)
Discuss
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus