0.1.2 • Published 2 years ago

eased-scroll v0.1.2

Weekly downloads
10
License
ISC
Repository
github
Last release
2 years ago

Eased scroll npm Dependencies npm type definitions

Listen to eased window scroll. Demo.

UI example

Installation

npm install eased-scroll

How to use

JavaScript:

import { easedScroll } from 'eased-scroll'

easedScroll(200).addListener((value) => {
	console.log('Actual value', window.scrollY)
	console.log('Smooth value', value)
})

For more advanced cases you can use methods removeListener and getValue too.

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago