saytum-smooth-scroll-to
v1.0.3
Published
The class adds for all links an event for smooth scrolling to the specified block.
Readme
Saytum smooth scroll to
Using
Install the library
$ yarn add saytum-smooth-scroll-toImport 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 a[href^="#"] an event for smooth scrolling to the specified block.
Available options - https://www.npmjs.com/package/smooth-scroll-into-view-if-needed?activeTab=readme
