Mootools Animated Image (PNG)

This is a script that creates an animated png (or gif/jpg).

Demo

Example Code

Javascript	
window.addEvent('domready',function(){
	
	var myAnimation = new Awf.pngAnimation('gnome-spinner.png',{
		width: 22,
		height: 22,
		rows: 5,
		cols: 7,
		fps: 10
	});
	$(myAnimation).inject($('spinner'));

	// With the stop method you can stop the animation, 
	// and with the start method you can start it again	 
	// myAnimation.stop();
	// $(myAnimation).destroy();

	
});
HTML
<div id="spinner"></div>
Image
GNOME-Spinner

Download & links

Dependencies

License

MIT-style license.

Created By

Aryweb Webdevelopment