PageSourceSearch

https://versedskin.com/cdn/shop/t/1031/assets/animate-on-scroll.js?v=54229516090609224281752007669

js versedskin.com collected 2026-10-01 11:51:20 UTC 2,050 bytes, 2 lines download raw bytes

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.delay=parseInt(this.dataset.delay)||0,this.staggerDelay=parseInt(this.dataset.staggerDelay)||100,this.classList.add(this.animationClass)}connectedCallback(){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;if(this.style.opacity="0",this.target.startsWith("."))this.querySelectorAll(this.target).forEach(el=>{el.style.opacity="0",el.style.transform="translateY(20px)",el.style.transition="opacity var(--animation-duration) var(--animation-easing), transform var(--animation-duration) var(--animation-easing)"});else{const targetElements=this.getElementsByTagName(this.target);Array.from(targetElements).forEach(el=>{el.style.opacity="0",el.style.transform="translateY(20px)",el.style.transition="opacity var(--animation-duration) var(--animation-easing), transform var(--animation-duration) var(--animation-easing)"})}const intersectionOptions={rootMargin:"0px 0px -150px 0px",threshold:this.animationThreshold};this.observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){const animateElement=(el,index)=>{setTimeout(()=>{this.style.opacity="1",el.style.opacity="1",el.style.transform="none",el.classList.add(this.animationClass)},index*this.staggerDelay+this.delay)};if(this.target.startsWith("."))this.querySelectorAll(this.target).forEach((el,index)=>animateElement(el,index));else{const targetElements=this.getElementsByTagName(this.target);Array.from(targetElements).forEach((el,index)=>animateElement(el,index))}this.observer.disconnect()}})},intersectionOptions),this.observer.observe(this)}disconnectedCallback(){this.observer&&this.observer.disconnect()}}customElements.define("hh-animate-on-scroll",HHAnimateOnScroll);
2//# sourceMappingURL=/cdn/shop/t/1031/assets/animate-on-scroll.js.map?v=54229516090609224281752007669

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.