Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Animate PNGs with jQuery?

Is there a simple plugin or some robust code that would allow me to animate PNGs with a simple start and stop method? TSM, Alex.


[Edit: I made a jQuery plugin that animates PNGs. Will post when it's all done.]

like image 718
Alexsander Akers Avatar asked Jan 26 '10 02:01

Alexsander Akers


People also ask

How to animate a image in jQuery?

jQuery Animations - The animate() Method The jQuery animate() method is used to create custom animations. Syntax: $(selector). animate({params},speed,callback);

How you can use jQuery to animate a flash to the button?

The solution to Jquery To Animate A Flash To The Button Selected will be demonstrated using examples in this article. $("#someElement"). fadeOut(100). fadeIn(100).


1 Answers

While this is not an "off-the-shelf" plugin, you may be intrested in checking out the following tutorial:

  • Building an Animated Cartoon Robot with jQuery

It uses PNG images for all the layers. It explains how to implement a startHim() method, which I'm sure you'll be able to convert into a stopHim(). You may probably be able to skim through it, unless you are trying to do something similar.

like image 63
Daniel Vassallo Avatar answered Oct 05 '22 23:10

Daniel Vassallo