jshjohnson / Animate

A tiny JS (5KB) library to trigger animations on elements when they are within the viewport 👓

Home Page:https://joshuajohnson.co.uk/Animate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

callbackOnInview - Event listener when Item is in view not just animated

opened this issue · comments

I would like to run a function when element is in view port but the callbackOnAnimate only works if an animation has taken place. This would prevent me having to have further scroll events.

Hey @toddpadwick,

This would be a super simple PR - I would be happy to review it? 👍

HI @jshjohnson thanks for your response... and merry christmas!
I am not really a JS developer (just HTML/CSS and basic jquery) so unfortunately doing this update myself is a little beyond my expertise :(