Skip to content

Instantly share code, notes, and snippets.

define([], function() {
return function(update) {
var windowAspectRatio = window.innerWidth/window.innerHeight,
isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry/.test(navigator.userAgent);
// console.log(windowAspectRatio);
var scrollYAtScan = 0,
// screenMeasure = windowAspectRatio < 0.7 && isMobile ? 0.8 : 0.5; // measurement point for page progress - 0.5 = vertical center of the window.