PageSourceSearch

https://regulaforensics.com/build/assets/cards-flipping-CJgQEiW_.js

js regulaforensics.com collected 2026-09-24 08:59:09 UTC 1,427 bytes, 1 lines download raw bytes

1import{g as s}from"./index-CzGW6FVa.js";import{S as f}from"./ScrollTrigger-DNECHiyU.js";s.registerPlugin(f);class m{constructor(){this.sections=document.querySelectorAll(".cards-flipping"),this.sections.length&&this.init()}init(){this.sections.forEach(o=>{this.initAnimation(o)})}initAnimation(o){const n=Array.from(o.querySelectorAll(".card-flipping"));if(!n.length)return;let e=null,a=!1;const p=1;n.forEach(i=>{i.querySelector(".card-flipping__inner").setAttribute("data-flipped","false")});const c=()=>{const i=s.timeline({repeat:-1,repeatDelay:0});return n.forEach((t,l)=>{const r=t.querySelector(".card-flipping__inner");i.to(r,{rotateY:180,duration:.8,ease:"power2.inOut",onComplete:()=>r.setAttribute("data-flipped","true")},l*p)}),n.forEach((t,l)=>{const r=t.querySelector(".card-flipping__inner");i.to(r,{rotateY:0,duration:.8,ease:"power2.inOut",onComplete:()=>r.setAttribute("data-flipped","false")},(n.length+l)*p)}),i};f.create({trigger:o,start:"top 80%",onEnter:()=>{!e&&!a?e=c():e&&!a&&e.play()},onLeave:()=>{e&&!a&&e.pause()},onEnterBack:()=>{e&&!a?e.play():!e&&!a&&(e=c())}}),n.forEach(i=>{const t=i.querySelector(".card-flipping__inner");i.addEventListener("click",()=>{a=!0,e&&e.pause(),s.killTweensOf(t);const r=t.getAttribute("data-flipped")==="true"?0:180;s.to(t,{rotateY:r,duration:.8,ease:"power2.inOut",onComplete:()=>t.setAttribute("data-flipped",r===180?"true":"false")})})})}}export{m as default};

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.