Add a custom event trigger
Add a custom event trigger

I needed to add a custom event trigger so I could fire specific JS code when the element came into view (animating a count of numbers), so thought I'd suggest this simple edit which made it possible.

It allowed me to then add code as follows:
`$(selector).on("inviewport", function() { /* code here */ });`
henkbulder/inViewPort