1class AnimateContent extends window.BAO.CustomElement(){static get requiredElements(){return["content"]}connectedCallback(){Shopify.designMode||(super.connectedCallback(),this.isTicking=!1,this.dataset.runInstant==="true"?setTimeout(()=>{this.setAttribute("animate","")},500):(this.observer=new IntersectionObserver(this.onEntry.bind(this),{threshold:.2}),this.observer.observe(this)))}setupListeners(){super.setupListeners(),this.hasAttribute("animate-opacity-on-scroll")&&(this.requestTick=this.requestTick.bind(this),this.updateOpacity=this.updateOpacity.bind(this),document.addEventListener("scroll",this.handleScroll.bind(this),{passive:!0}))}onEntry([entry],observer){entry.isIntersecting&&(this.setAttribute("animate",""),observer.unobserve(this))}handleScroll(){this.requestTick()}requestTick(){this.isTicking||requestAnimationFrame(this.updateOpacity),this.isTicking=!0}updateOpacity(){this.isTicking=!1;const viewportHeight=window.innerHeight,distanceFromTop=Math.round(this.getBoundingClientRect().top-this.clientHeight);this.opacity=(100-distanceFromTop/viewportHeight*100)/100,this.style.setProperty("--Opacity",`${this.opacity}`)}set opacity(value){this._opacity=value<0?0:value>1?1:value}get opacity(){return this._opacity}}customElements.get("animate-content")||customElements.define("animate-content",AnimateContent); 2//# sourceMappingURL=/cdn/shop/t/141/assets/animate-content.js.map?v=24426295182112161911753266234
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.