Skip to content

Instantly share code, notes, and snippets.

View Eyal-Shalev's full-sized avatar

Eyal Halpern Shalev Eyal-Shalev

View GitHub Profile
@Eyal-Shalev
Eyal-Shalev / scroller.js
Last active September 6, 2015 19:47 — forked from dezinezync/scroll.easing.js
Vanilla Javascript scrolling object
'use strict';
/*
* Based on work done by Nikhil Nigade (@dezinezync) https://gist.github.com/dezinezync/5487119
*/
(function () {
var DEFAULT_ELEMENT = document.documentElement.scrollTop ? document.documentElement : document.body;
var REQUEST_ANIMATION_FRAME = window.requestAnimationFrame || window.mozRequestAnimationFrame ||
window.webkitRequestAnimationFrame || window.oRequestAnimationFrame;