abhazelton / animate-on-scroll

Simple Angular directive to add CSS animation class to element once scrolled to in the viewport.
47 stars 24 forks source link

Reset element animation #23

Open dhruveonmars opened 5 years ago

dhruveonmars commented 5 years ago

Is there a way to reset the animation?

I have a footer that fades in when the user scrolls to it. When they navigate somewhere, the page scrolls back up and the footer fades out along with other elements. The page then does the route change. How can I get it to fadeIn again when the user scrolls to the bottom of the page after the route has been changed? Is there a way to re-initialise it for specific elements?

abhazelton commented 5 years ago

As you may have noticed, there hasn't been any updates in a while on this. I'm too busy to keep up with it and haven't been working on any Angular projects for a while, so if someone wants to take this over, you are welcome to it.