This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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; |