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

/sscroll/

    Package Sidebar

    Install

    npm i sscroll

    Weekly Downloads

    90

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    9.37 kB

    Total Files

    8

    Last publish

    Collaborators

    • estrattonbailey