- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
2 lines
525 B
JavaScript
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 _};
|