Scrolls an element to a side of the viewport