1.1.2 • Published 6 years ago
sscroll v1.1.2
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