Hacker News new | ask | show | jobs
by fimdomeio 3559 days ago
this does not work with time based animations right? A tool that would be really nice for developing time based animations would be one where you could switch easily between time and mouse movement.
2 comments

The documentation indicates that this library doesn't really handle the events at all (which is great imo). The getting started has more info on this.

https://github.com/christinecha/choreographer-js#get-started

Looks awesome!

It works for any measurement! That choice is left completely up to the user. Instead of wrapping it in an event handler, you might instead set a variable for 'start time', run animations on requestAnimationFrame, and pass in the current time.