Files
michaelschiemer/public/assets/js/modules-parallax-B5UFzAOO.js
Michael Schiemer 55a330b223 Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
2025-08-11 20:13:26 +02:00

2 lines
525 B
JavaScript

import{L as t,r as e}from"./core-CJ4hMzNX.js";const a=Object.freeze(Object.defineProperty({__proto__:null,init:function(a={}){t.info("Parallax init");const r={selector:"[data-parallax]",speedAttr:"data-parallax-speed",defaultSpeed:.5,...a},o=document.querySelectorAll(r.selector);e("parallax",function(){const t=window.scrollY;o.forEach(e=>{const a=parseFloat(e.getAttribute(r.speedAttr))||r.defaultSpeed,o=t*a;e.style.transform=`translateY(${o}px)`})},{autoStart:!0})}},Symbol.toStringTag,{value:"Module"}));export{a as _};