1.0.3 • Published 5 years ago
saytum-smooth-scroll-to v1.0.3
Saytum smooth scroll to
Using
Install the library
$ yarn add saytum-smooth-scroll-to
Import the library and create an instance with settings
import SmothScrollToElement from 'saytum-smooth-scroll-to';
new SmothScrollToElement({ block: 'center' });
The class adds for all links ahref^="#" an event for smooth scrolling to the specified block.
Available options - https://www.npmjs.com/package/smooth-scroll-into-view-if-needed?activeTab=readme