Rewritten so that at the end of the animation, the height/width CSS properties of the actual DOM element are "auto", not the computed pixel based size