reparent animation element

Add a test that removes an animation element from the DOM, and then adds
that element again with a different parent element.

The animation should now affect a different element, without the
progress of the animation being affected.