PageSourceSearch

https://hooverap.com/wp-content/cache/min/1/wp-content/themes/nord…/js/pxl-image-hero.js?ver=1774379382

js hooverap.com collected 2026-10-06 16:28:29 UTC 2,724 bytes, 3 lines download raw bytes

1window.addEventListener("load",function(){const initHeroSlider=(selector,direction="top")=>{const sliders=gsap.utils.toArray(selector);sliders.forEach((slider)=>{const slides=gsap.utils.toArray(".pxl-bg-hero",slider);if(slides.length===0)return;let currentIndex=0;let isTweening=!1;let timer;const duration=parseInt(slider.getAttribute("data-duration"))||1000;const delayTime=parseInt(slider.getAttribute("data-delay"))||2;slides.forEach((slide,i)=>{let initialStyle={};switch(direction){case "top":initialStyle.clipPath=i===0?"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)":"polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%)";break;case "bottom":initialStyle.clipPath=i===0?"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)":"polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%)";break;case "left":initialStyle.clipPath=i===0?"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)":"polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%)";break;case "right":initialStyle.clipPath=i===0?"polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)":"polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%)";break;case "fade":initialStyle.opacity=i===0?1:0;break}
2initialStyle.zIndex=i===0?2:1;gsap.set(slide,initialStyle)});const gotoSlide=()=>{if(isTweening)return;isTweening=!0;const currentSlide=slides[currentIndex];currentIndex=(currentIndex+1)%slides.length;const nextSlide=slides[currentIndex];gsap.set(currentSlide,{zIndex:1});let animationProps={duration:duration/1000,ease:"power1.inOut",onComplete:()=>{isTweening=!1;timer.restart(!0)}};switch(direction){case "top":gsap.set(nextSlide,{zIndex:2,clipPath:"polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%)"});
2animationProps.clipPath="polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)";break;case "bottom":gsap.set(nextSlide,{zIndex:2,clipPath:"polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%)"});animationProps.clipPath="polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)";break;case "left":gsap.set(nextSlide,{zIndex:2,clipPath:"polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%)"});animationProps.clipPath="polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)";break;case "right":gsap.set(nextSlide,{zIndex:2,clipPath:"polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%)"});animationProps.clipPath="polygon(100% 0%, 0% 0%, 0% 100%, 100% 100%)";break;case "fade":gsap.set(nextSlide,{zIndex:2,opacity:0});animationProps.opacity=1;animationProps.onComplete=()=>{gsap.set(currentSlide,{opacity:0});isTweening=!1;timer.restart(!0)};break}
3gsap.to(nextSlide,animationProps)};timer=gsap.delayedCall(delayTime,gotoSlide)})};initHeroSlider(".pxl-image-hero.style-top","top");initHeroSlider(".pxl-image-hero.style-bottom","bottom");initHeroSlider(".pxl-image-hero.style-left","left");initHeroSlider(".pxl-image-hero.style-right","right");initHeroSlider(".pxl-image-hero.style-fade","fade")})

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.