smooth-scrolling.js
1.0.0 • Public • Published
smooth scroll

📦 Install
npm install smooth-scrolling.js
yarn add smooth-scrolling.js
https://cdn.jsdelivr.net/npm/smooth-scrolling.js@1.0.0
Usage
import SmoothScroll from 'smooth-scrolling.js'
SmoothScroll(options)
SmoothScroll.destroy();
Custom options
Defaults:
{
frameRate: 150,
animationTime: 400,
stepSize: 100,
pulseAlgorithm: true,
pulseScale: 4,
pulseNormalize: 1,
accelerationDelta: 50,
accelerationMax: 3,
keyboardSupport: true,
arrowScroll: 50,
fixedBackground: true,
excluded: ''
}
🔗 Links
Package Sidebar
Install
npm i smooth-scrolling.js
Weekly Downloads