PageSourceSearch

https://www.sequence-events.com/hubfs/hub_generated/module_assets/…/module_accordion-section.min.js

js sequence-events.com collected 2026-10-02 20:32:54 UTC 2,402 bytes, 2 lines download raw bytes

1var module_212015188780=void document.addEventListener("DOMContentLoaded",()=>{gsap.matchMedia().add("(min-width: 991px)",()=>{gsap.utils.toArray(".accordion-section .tag").forEach(el=>{gsap.fromTo(el,{y:80,opacity:0},{y:0,opacity:1,duration:.8,ease:"power2.out",force3D:!1,scrollTrigger:{trigger:el,start:"top 70%",once:!0}})}),document.querySelectorAll(".accordion-section").forEach(section=>{const accordionsWrapper=section.querySelector(".accordions"),accordionReveals=section.querySelectorAll(".accordion-reveal");accordionsWrapper&&accordionReveals.length&&gsap.fromTo(accordionReveals,{y:80,opacity:0},{y:0,opacity:1,duration:.8,ease:"power2.out",stagger:.15,force3D:!1,overwrite:!0,scrollTrigger:{trigger:accordionsWrapper,start:"top 70%",once:!0}})})}),document.querySelectorAll(".accordion-section .accordion").forEach(accordion=>{const title=accordion.querySelector(".title"),content=accordion.querySelector(".content"),splideEl=accordion.querySelector(".splide");if(!title||!content)return;let splideInstance=null;splideEl&&window.Splide&&(splideInstance=new Splide(splideEl,{type:"loop",perPage:3,gap:"16px",arrows:!1,pagination:!1,drag:!0,rewind:!1,focus:0,trimSpace:!1,padding:{left:0,right:0},breakpoints:{1024:{perPage:2,padding:{left:0,right:0}},640:{perPage:1,padding:{left:0,right:"18%"}}}}).mount()),gsap.set(content,{height:0,overflow:"hidden"}),title.addEventListener("click",()=>{const isOpen=accordion.classList.contains("is-open");if(gsap.killTweensOf(content),isOpen){const currentHeight=content.offsetHeight;gsap.set(content,{height:currentHeight,overflow:"hidden"}),gsap.to(content,{height:0,duration:.4,ease:"power2.inOut",overwrite:!0,onComplete:()=>{accordion.classList.remove("is-open"),gsap.set(content,{height:0,overflow:"hidden"}),window.ScrollTrigger&&ScrollTrigger.refresh()}})}else{accordion.classList.add("is-open"),gsap.set(content,{height:"auto",overflow:"hidden"});const targetHeight=content.offsetHeight;gsap.set(content,{height:0,overflow:"hidden"}),gsap.to(content,{height:targetHeight,duration:.4,ease:"power2.inOut",overwrite:!0,onComplete:()=>{gsap.set(content,{height:"auto",overflow:"hidden"}),splideInstance&&splideInstance.refresh(),window.ScrollTrigger&&ScrollTrigger.refresh()}})}})})});
2//# sourceURL=https://3881751.fs1.hubspotusercontent-na1.net/hubfs/3881751/hub_generated/module_assets/1/212015188780/1781579958681/module_accordion-section.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.