Visit this link for more information
Have you noticed that when scrolling to an element positioned to the left of your current scroll position, only half of the element is visible?
It would be ideal if the entire element could be visible and even centered on the page, right?
After reviewing the source code, it's not immediately clear how the plugin determines when to stop scrolling.
I'm aware of the offset setting that can adjust the final scroll position vertically, but since the size and position of the element may vary, I'd rather find a universal solution that takes into account the size and position of the element being scrolled to, automatically centering it.