Hi,
I want to animate a text container so that it appears to be coming from the center of a clicked rectangle and whill stop at the center of the screen.
When clicking the x button the animation should be reversed, meaning that the text will move from the center to the div it came from.
Everyhting works fine expect if I click on another rectangle or the same one again. The start position of the text container seems to be broken after reversing the animation. How can I fix this issue?
The target (text container) top and left value seems to be different after the reverse animation is executed...