Skip to content

Releases: ko-yelie/intersection-events

v0.2.7

Choose a tag to compare

@ko-yelie ko-yelie released this 04 Sep 17:10

New Features

  • Enable to set threshold individually by data attribute

v0.2.6

Choose a tag to compare

@ko-yelie ko-yelie released this 31 Aug 13:49

Fixes

  • Add fallback when IntersectionObserver does not exist

v0.2.3

Choose a tag to compare

@ko-yelie ko-yelie released this 31 Aug 12:00

Fixes

  • Fix that there was an element that do not fire an event

Add `isOnce` option

Choose a tag to compare

@ko-yelie ko-yelie released this 11 May 16:45

If you want to detect enter only once, set isOnce option to true.

new IntersectionEvents('.js-target', {
  onEnter: el => {
    // Do only once
  },
  isOnce: true
})