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

Readme

Keywords

none

Package Sidebar

Install

npm i sscroll

Weekly Downloads

41

Version

1.1.2

License

MIT

Unpacked Size

9.37 kB

Total Files

8

Last publish

Collaborators

  • estrattonbailey