mirror of
https://github.com/hanzobot/adnexus.git
synced 2026-10-30 19:44:10 +00:00
2 lines
565 B
JavaScript
2 lines
565 B
JavaScript
import{j as o,r as n}from"./ui-SA1K2VdO.js";const c=()=>{const e=n.useRef(null);return n.useEffect(()=>{const l={root:null,rootMargin:"0px",threshold:.1};e.current=new IntersectionObserver(r=>{r.forEach(t=>{t.isIntersecting&&(t.target.classList.add("active"),e.current?.unobserve(t.target))})},l);const s=document.querySelectorAll(".reveal, .reveal-slide-up, .reveal-slide-right");return s.forEach(r=>{e.current?.observe(r)}),()=>{e.current&&s.forEach(r=>{e.current?.unobserve(r)})}},[]),null},u=({children:e})=>(c(),o.jsx(o.Fragment,{children:e}));export{u as S};
|