demo/public/vendor/smooth-scroll.js
function () {
			timeLapsed += 16;
			percentage = ( timeLapsed / speed );
			percentage = ( percentage > 1 ) ? 1 : percentage;
			position = startLocation + ( distance * _easingPattern(easing, percentage) );
			window.scrollTo( 0, Math.floor(position) );
			_stopAnimateScroll(position, endLocation, animationInterval);
		}
function () {
			timeLapsed += 16;
			percentage = ( timeLapsed / speed );
			percentage = ( percentage > 1 ) ? 1 : percentage;
			position = startLocation + ( distance * _easingPattern(easing, percentage) );
			window.scrollTo( 0, Math.floor(position) );
			_stopAnimateScroll(position, endLocation, animationInterval);
		}
function ( ) { timeLapsed += 16 ; percentage = ( timeLapsed / speed ) ; percentage = ( percentage > 1 ) ? 1 : percentage ; position = startLocation + ( distance * _easingPattern ( easing , percentage ) ) ; window . scrollTo ( 0 , Math . floor ( position ) ) ; _stopAnimateScroll ( position , endLocation , animationInterval ) ; }
Loop scrolling animation Private method Runs functions
Loop scrolling animation Private method Runs functions