sscroll

1.1.2 • Public • Published

sscroll

Itty-bitty smooth scrolling. 400 bytes gzipped.

Usage

import sscroll from 'sscroll'
 
const stop = sscroll(document.getElementById('target'), {
  duration: 500, // ms
  offset: 50 // positive values scroll further
})
 
stop() // stops scroll

License

MIT License © Eric Bailey

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.267latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.267
1.1.10
1.0.30
1.0.20
1.0.10
1.0.00
0.2.04
0.1.00
0.0.20
0.0.10

Package Sidebar

Install

npm i sscroll

Weekly Downloads

44

Version

1.1.2

License

MIT

Unpacked Size

9.37 kB

Total Files

8

Last publish

Collaborators

  • estrattonbailey