How to move(animate) a button to a certain position on click and return to original position if click elsewhere?
<p>Suppose we have a button <code>&lt;button id="btn"&gt;I'm a button&lt;/button&gt;</code>.It's position is right in the center.Now when i click this button it should move to let's say top left corner.When click elsewhere on screen return the button to original position(center), so that next time i click the button it should repeat the transition.</p>