smooth-scrolling.js

1.0.0 • Public • Published

smooth scroll

publish 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

Package Sidebar

Install

npm i smooth-scrolling.js

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

19.2 kB

Total Files

5

Last publish

Collaborators

  • 142536yu