.wait(null / $ ,callback)
Description: Wait for ongoing animations to end.
- null / $ –
- callback –
- a method that is called once before continuing the jQuery chain.
- All current iteration counts/events (from inner-most to outer-most loop) are passed as arguments.
Tip: .wait() is an abbreviation for .join(true). The join() method provides more options when waiting for animations.