jeremyckahn / mantra

A professional web animation tool for everyone
https://jeremyckahn.github.io/mantra/
Other
184 stars 15 forks source link

trigger animation #11

Closed centrespot closed 4 years ago

centrespot commented 4 years ago

Hi This is a great tool for creating animations but I am struggling to work out a way of triggering the animation to begin only when the area is visited, for example within the footer area.

centrespot commented 4 years ago

Just worked it out...

jeremyckahn commented 4 years ago

Hi @centrespot, thanks for opening this issue! I'm glad you're enjoying Mantra. This tool doesn't provide functionality around wiring up animations to specific interactions, but you could certainly use it with a library like [Waypoints])(https://github.com/imakewebthings/waypoints) to add a class to an element that would start an animation.

You could also go with a library-less approach like the one you described above. Hopefully this explanation helps you!