https://www.assouline.com/cdn/shop/t/541/assets/animate-on-scroll.js?v=84736211059498137201790780326
1class HHAnimateOnScroll extends HTMLElement{constructor(){super(),this.observer=null,this.target=this.dataset.target||"adaptive-image",this.animationClass=this.dataset.animationClass||"zoomin",this.animationThreshold=this.dataset.animationThreshold||.25,this.classList.add(this.animationClass)}connectedCallback(){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const intersectionOptions={root:null,threshold:this.animationThreshold};this.observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{entry.isIntersecting&&(entry.target.classList.remove(this.animationClass),entry.target.querySelector(this.target)?.classList.add(this.animationClass))})},intersectionOptions),this.observer?.observe(this)}disconnectedCallback(){this.observer?.unobserve(this)}}customElements.define("hh-animate-on-scroll",HHAnimateOnScroll); 2//# sourceMappingURL=/cdn/shop/t/541/assets/animate-on-scroll.js.map?v=84736211059498137201790780326
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.