If called without arguments, all animations on the screen are completed. If given an element (or selector), animations on that element and its children are completed.
Animations are completed by jumping to the last animation frame instantly.
Does nothing if there are no animation to complete.
A promise that fulfills when animations and transitions have finished.