1function animateElements(arrayOfElementsToAnimate=[],settings={}){try{const{toOrFrom:toOrFrom="to",xOffset:xOffset=0,yOffset:yOffset=100,matchMedia:matchMedia="min-width: 0px",scrollerStart:scrollerStart="bottom",scrollerEnd:scrollerEnd="top",toggleActions:toggleActions="play none none none",scrub:scrub=!1,duration:duration=1,stagger:stagger=!1,ease:ease="none"}=settings;if(!arrayOfElementsToAnimate)throw new Error("arrayOfElementsToAnimate not found\narrayOfElementsToAnimate:\n",arrayOfElementsToAnimate);if(arrayOfElementsToAnimate?.nodeType&&(arrayOfElementsToAnimate=[arrayOfElementsToAnimate]),!Array.isArray(arrayOfElementsToAnimate)||arrayOfElementsToAnimate.length<1)throw new Error("arrayOfElementsToAnimate invalid:\n"+arrayOfElementsToAnimate);for(let i=0;i<arrayOfElementsToAnimate.length;i++){const elementToAnimate=arrayOfElementsToAnimate[i];if(!elementToAnimate||!elementToAnimate.nodeType){console.warn("%c!!! animateElements()\nelementToAnimate is not an element. Skipping this iteration...","background: #faf");continue}"absolute"!==getComputedStyle(elementToAnimate).getPropertyValue("position")&&(elementToAnimate.style.position="relative");const currentTopOfElement=parseInt(window.getComputedStyle(elementToAnimate).getPropertyValue("top").replace("px",""));elementToAnimate.style.top=`${currentTopOfElement+yOffset}px`;const elementEndPart="bottom",tween=[elementToAnimate,{scrollTrigger:{trigger:elementToAnimate,start:["top",scrollerStart].join(" "),end:[elementEndPart,scrollerEnd].join(" "),toggleActions:toggleActions,scrub:scrub,stagger:stagger},x:"+="+-xOffset,y:"+="+-yOffset,duration:duration,ease:ease}];gsap.matchMedia().add(`(${matchMedia})`,()=>{"from"===toOrFrom?gsap.from(...tween):"fromTo"===toOrFrom?gsap.fromTo(...tween):gsap.to(...tween)})}}catch(e){console.warn(`%c!!! animateElements()\n${e}`,"background: #faf")}} 2//# sourceURL=https://25607130.fs1.hubspotusercontent-eu1.net/hubfs/25607130/hub_generated/template_assets/1/53696830676/1789027507044/template_custom-gsap.js
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.