[animation] Animate the x and y attrs of the rect position with each call to the render func