3.2.1 • Published 4 years ago

srraf v3.2.1

Weekly downloads
424
License
MIT
Repository
github
Last release
4 years ago

srraf

Monitor scrolling and resizing without event listeners. 300 bytes gzipped.

Install

npm i srraf --save

Usage

import srraf from 'srraf'

const scroller = srraf(({ x, px, y, py, vh, pvh, vw, pvw }, timestamp) => {
  // ...
})

scroller.update() // check position
scroller.destroy() // destroy listener

Note: values prefixed with p denote previous values.

License

MIT License © Eric Bailey

3.2.1

4 years ago

3.2.0

5 years ago

3.1.4

5 years ago

3.1.3

5 years ago

3.1.2

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago