Animating an element with a callback when completed, It will animate the x and y axis.