Initial commit
This commit is contained in:
1
wp-content/plugins/gp-premium/page-header/functions/js/parallax.min.js
vendored
Normal file
1
wp-content/plugins/gp-premium/page-header/functions/js/parallax.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function generate_parallax_element(e,t){var a=(t=t||document).querySelectorAll(e);return Array.prototype.slice.call(a)}window.addEventListener("scroll",function(){var e=window.pageYOffset;generate_parallax_element(".parallax-enabled").forEach(function(t,a,o){var r=t.offsetTop+t.offsetHeight;e>t.offsetTop&&e<=r?t.style.backgroundPositionY=(e-t.offsetTop)/t.getAttribute("data-parallax-speed")+"px":t.style.backgroundPositionY="0"})});
|
Reference in New Issue
Block a user