1.0.1 • Published 9 years ago

buttery-scroll v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Scroll like butter

Demo

Usage

Install from npm: npm install buttery-scroll

Call as a function:

ButteryScroll(scrollableElement, distance, duration)

  • scrollableElement: any element that can scroll, e.g. document.body
  • distance: a distance in pixels, a positive or negative value
  • duration: how long the scroll should take, in milliseconds

This is essentially a heavy fork of Benjamin De Cock's sweet Anchor scrolling library. Thanks Benjamin!.