I have a box that is in this position
position:absolute;
right:20px;
top:10px;
cursor:pointer;
When I click it I want it to be in this position
position:absolute;
right:unset;
left:500px;
top:10px;
cursor:pointer;
As seen here: http://jsfiddle.net/syogua8o/1/
That part is simple, the hard part is getting it to animate between those positions. I want the object to get an ease motion between those two points. I don't know how to go about doing this. Anything works as long as I can be 20px left and 500px right of the viewport edge when animating. I need it to be relative to the viewport edge.