Animated scrolling to anchor links stopping at right position