Skip to content
Itty-bitty smooth scrolling.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
index.js
package-lock.json
package.json

README.md

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

You can’t perform that action at this time.