Designing Custom Animations in jQuery
All of the previous methods for animating elements are nice, but there’s a more elegant weapon for these uncivilized times, the $.animate() method. jQuery has a more general method for doing animations, which permits you to modify more than one attribute simultaneously. Any attribute that uses a numeric value such as top, left, height, width, [ [ ...]