Skip to content

Releases: wide/viewport

2.2.0

21 Dec 16:09
3471b72
Compare
Choose a tag to compare

Fix: Make viewport-enter state always available in the class, even if the element is active

2.1.1

08 Jul 14:37
d923c3f
Compare
Choose a tag to compare
  • 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) 
})

2.1.0

16 Jun 22:41
Compare
Choose a tag to compare
  • Update package.json

2.0.3

15 Feb 10:11
Compare
Choose a tag to compare
  • Fix the viewport in case there is no class name defined in the data-viewport

2.0.1

08 Dec 15:53
f19de42
Compare
Choose a tag to compare
  • Fix viewport.once

2.0.0

29 May 16:01
ed16986
Compare
Choose a tag to compare
Delete README.md