1.0.0 • Published 2 years ago

smooth-scrolling.js v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

publish npm.io NPM downloads

📦 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