Releases: wide/viewport
Releases · wide/viewport
2.2.0
2.1.1
- Get information about the scroll direction or the appearance edge of the element :
div.addEventListener('viewport.enter', e => {
// scroll direction when the element passes through the IntersectionObserver
console.log(e.detail.scroll)
// window edge intersecting when the element passes through the IntersectionObserver
console.log(e.detail.edge)
})