Simple and fast event listener for enter viewport in pure Java-Script.
It also works for items that are already visible...
Default options:
ScrollEvent()
.visible(...)
Default options:
- fullyInView: false
- delay: 0
- repetition: 1
This box have to be fully in view.
ScrollEvent({fullyInView: true})
.visible(...)
You can select multiple item simultaneously!
It is also possible to use JS libraries like jQuery, vue.JS, AngularJS or React.js
ScrollEvent()
.visible($('.className'), ...)
My event fired after 3000ms after get visible...
1...
2..
1...
2..