PageSourceSearch

https://spell.co/cdn/shop/t/358/assets/embla-scale.B-2wlfuD.min.js?v=13221541123965929691788394315

js spell.co collected 2026-09-26 17:10:28 UTC 1,218 bytes, 1 lines download raw bytes

1class T{constructor(){this.TWEEN_FACTOR_BASE=.3,this.tweenFactor=0,this.tweenNodes=[]}numberWithinRange(e,t,s){return Math.min(Math.max(e,t),s)}setTweenNodes(e){this.tweenNodes=e.slideNodes().map(t=>t.querySelector(".embla__slide__scale"))}setTweenFactor(e){this.tweenFactor=this.TWEEN_FACTOR_BASE*e.scrollSnapList().length}tweenScale(e,t){const s=e.internalEngine(),n=e.scrollProgress(),w=e.slidesInView(),d=t==="scroll";e.scrollSnapList().forEach((o,u)=>{let r=o-n;s.slideRegistry[u].forEach(i=>{if(d&&!w.includes(i))return;s.options.loop&&s.slideLooper.loopPoints.forEach(a=>{const l=a.target();if(i===a.index&&l!==0){const h=Math.sign(l);h===-1&&(r=o-(1+n)),h===1&&(r=o+(1-n))}});const g=1-Math.abs(r*this.tweenFactor),E=.6+this.numberWithinRange(g,0,1)*.6,S=this.tweenNodes[i];S.style.transform=`scale(${E.toFixed(3)})`})})}setup(e){return this.setTweenNodes(e),this.setTweenFactor(e),this.tweenScale(e),e.on("reInit",()=>this.setTweenNodes(e)).on("reInit",()=>this.setTweenFactor(e)).on("reInit",()=>this.tweenScale(e)).on("scroll",(t,s)=>this.tweenScale(t,s)).on("slideFocus",(t,s)=>this.tweenScale(t,s)),()=>{this.tweenNodes.forEach(t=>t.removeAttribute("style"))}}}const F=c=>new T().setup(c);export{F as s};

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.