1customElements.get("parallax-section")||customElements.define("parallax-section",class extends HTMLElement{constructor(){super(),this.images=this.querySelectorAll(".wt-parallax__img")}connectedCallback(){this.init()}decorateImages(){this.querySelectorAll(".wt-parallax__gallery__item").forEach((item,index)=>{item.querySelector(".wt-parallax__img").classList.add(`wt-parallax__img--${index%2===0?"odd":"even"}`)})}rotateOnScroll(){const{images}=this,maxRotation=parseInt(this.dataset.rotation,10)||5;document.addEventListener("scroll",function(){images.forEach(image=>{const imageRect=image.getBoundingClientRect(),windowHeight=window.innerHeight;if(imageRect.top<windowHeight){let visiblePercent=(windowHeight-imageRect.top)/windowHeight*100,rotationDegree=Math.min(visiblePercent/100*maxRotation,maxRotation);image.classList.contains("wt-parallax__img--odd")&&(rotationDegree*=-1),window.requestAnimationFrame(()=>{image.style.transform=`translate3d(0px, 0px, 0px) rotate(${rotationDegree}deg)`})}})})}init(){this.decorateImages(),this.rotateOnScroll()}}); 2//# sourceMappingURL=/cdn/shop/t/9/assets/parallax.js.map?v=22701632425930398101781628320
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.