Skip to content

Instantly share code, notes, and snippets.

@karki-dennis
Last active May 4, 2016 04:39
Show Gist options
  • Save karki-dennis/cfef50fa878b9c5567dd to your computer and use it in GitHub Desktop.
Save karki-dennis/cfef50fa878b9c5567dd to your computer and use it in GitHub Desktop.
Versatile and lightweight code with the aptitude of the JavaScript requestAnimationFrame feature and assistance of two well suited and proven jQuery plugins. Response to mousewheel turns is normalised by mousewheel.js which will provide a consistent and predictable amount of scrolling movement across browsers. Special types of animation easing provided by the easing.js script can create an elegant scroll curve and deceleration. The method's characteristic variables can be easily modified, offering the opportunity for customisation in great detail. Responsive capabilities are included and with the native jQuery animate method as an automatic fallback, legacy browser support is also available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment