Fix: Element now properly returns to the correct position in transition
mode

Element was appended to the parent container instead of being attached
after the element in the DOM.

Closes #1