sscroll

Itty-bitty smooth scrolling.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
sscroll
401.1.25 years ago6 years agoMinified + gzip package size for sscroll in KB

Readme

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