jQuery Callback

The Callback function is executed after the current animation is 100% complete.

jQuery animation problem


Many jQuery functions involve animation. These functions may have speed or duration as optional parameters.

例子:$("p").hide("slow")
The speed or duration parameter can be set to many different values, such as "slow", "fast", "normal" or milliseconds.

Instance

The following example callback function after the hidden effect is fully implemented:

Use a callback instance 
Run the program and try it out

The following example does not have a callback function, and the warning box will pop up before the hidden effect is completed:

No callback


Run the program and try it out

Last Updated: 2018-11-24 14:41:31 By Akshay

SHARE THIS

share_facebook share_twitter share_google_plus

Please Comment Here :