Added animationComplete() function

Tried adding a single animationComplete function to run whenever the transition promise resolves. This *should* work, but it never fires when collapsing. :-/