Skip to content

Kshao123/smoothScroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published