HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/dallavitae/OLD_WP/wp-content/themes/skrollex/assets/js/app/scroll-animation.js
"use strict"; var $ = jQuery;
module.exports = function(scrolling, script){
	var $views = $('.view');
	var appShare = require('./app-share.js');
	var isPoorBrowser = $('html').hasClass('poor-browser');
	this.scroll = function(){
		if(isPoorBrowser) return;
		$views.each(function(i){
			var $view = $(this);
			var viewPos = scrolling.calcPosition($view);
			if(viewPos.visible){
				var viewOffset = viewPos.top - scrolling.windowTopPos;
				$view.children('.bg:not(.static)').each(function(){
					var cfg = $(this).data();
					cfg.parallaxY = appShare.parallaxMargin(script, i, viewOffset);
				});
			}
		});
	};
};