Home › Forums › JavaScript › Jquery expand › Re: Jquery expand
January 21, 2013 at 6:18 pm
#121786
Mottie
Member
It’s because there are multiple `$siblings`. When using the callback function, each individual sibling element will a callback on themselves to remove the class name after each animation has completed. Whereas, the `promise().done()` will remove the class names only after ALL of the sibling elements have completed their animation. It makes a difference because the css transition is applied to the class name being manipulated.