Pan to an element