The jQuery animate() step callback function
If you’ve ever needed to do more complex animations than fades and slides, then you’ve probably encountered the jQuery animate function. The animate function allows you quite a bit more flexibility than just using fadeOut or slideDown. In fact, the oft-used fades and slides simply wrap calls to animate.
If you’ve ever looked at the jQuery animate docs at api.jquery.com you might have noticed that one of the optional arguments you can define is step which is defined as:
A function to be called after each step of the animation.
…and that’s it. If you search for “step” on the page, you won’t see another mention of it.
Comments(4)