Here goes a lesson from Wayfarer's animation tutorial, mostly unchanged.
All animations you start run simultaneously by default, unless you choose to stack them.
Animation in this example is very smooth, because the elements being animated are simple. Be careful, quality is likely to degrade for complex elements.
jQuery.animate function calls usual form:
jQuery(selector).animate( properties, [ duration ], [ easing ], [ callback ] ) with properties in [ brackets ] being optional. Using coffeescript you can drop some of the syntax if you like:
Source code links:
Ok, that was too simple, we surely want more fun. Get to the next lesson!technorati token D6DWZM9N6BXZ