1const SCROLL_ANIMATION_TRIGGER_CLASSNAME="scroll-trigger",SCROLL_ANIMATION_OFFSCREEN_CLASSNAME="scroll-trigger--offscreen",SCROLL_ANIMATION_CANCEL_CLASSNAME="scroll-trigger--cancel";function onIntersection(r,s){r.forEach((t,n)=>{if(t.isIntersecting){const e=t.target;e.classList.contains(SCROLL_ANIMATION_OFFSCREEN_CLASSNAME)&&(e.classList.remove(SCROLL_ANIMATION_OFFSCREEN_CLASSNAME),e.hasAttribute("data-cascade")&&e.setAttribute("style",`--animation-order: ${n};`)),s.unobserve(e)}else t.target.classList.add(SCROLL_ANIMATION_OFFSCREEN_CLASSNAME),t.target.classList.remove(SCROLL_ANIMATION_CANCEL_CLASSNAME)})}function initializeScrollAnimationTrigger(r=document,s=!1){const t=Array.from(r.getElementsByClassName(SCROLL_ANIMATION_TRIGGER_CLASSNAME));if(t.length===0)return;if(s){t.forEach(e=>{e.classList.add("scroll-trigger--design-mode")});return}const n=new IntersectionObserver(onIntersection,{rootMargin:"0px 0px -50px 0px"});t.forEach(e=>n.observe(e))}window.addEventListener("DOMContentLoaded",()=>initializeScrollAnimationTrigger()),Shopify.designMode&&(document.addEventListener("shopify:section:load",r=>initializeScrollAnimationTrigger(r.target,!0)),document.addEventListener("shopify:section:reorder",()=>initializeScrollAnimationTrigger(document,!0))); 2//# sourceMappingURL=animations.js.map
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.