import{r as e}from"./rolldown-runtime-C60lm6uB.js";import{i as t,r as n}from"./framework-D_rUT4EX.js";var r=e(t(),1),i=n();function a({children:e,className:t=``,delay:n=0}){let a=(0,r.useRef)(null),[o,s]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=a.current;if(!e)return;let t=new IntersectionObserver(([e])=>{e.isIntersecting&&(s(!0),t.disconnect())},{threshold:.14});return t.observe(e),()=>t.disconnect()},[]),(0,i.jsx)(`div`,{ref:a,className:`reveal ${o?`is-visible`:``} ${t}`,style:{transitionDelay:`${n}ms`},children:e})}export{a as Reveal};