use-intersection-observer
useIntersectionObserver
import { useIntersectionObserver } from "@atomico/hooks/use-intersection-observer";
function component(){
useIntersectionObserver(([entry])=>{
console.log("",{isIntersecting })
},{
threshold: 0.1,
})
return <host shadowDom/>
}
component.styles = css`
:host{
display: block;
width: 100%;
min-height: 1px;
}
`useRefIntersectionObserver
Last updated
Was this helpful?
