Working on panning when animating