Proper handling of elements appearing/disappearing in the middle of an
animation.