Not sure to understand what you mean by "coordinate multiple animations", Are you talking about some kind of timeline?
I had in mind more kind of a matrix, but I am asking here to gain knowledge from people that already must have been thinking more about this than me.
How do you handle dozens or hundreds of animation events?
It's called Barrel: https://github.com/zachrose/barrel
You can think of it either as map for setTimeout, or a way to turn sequences into a player object that accepts your own function to perform each point in the sequence.
Also, Barrel has no built-in story for animations or anything HTML specific. But you can include tweening information in the events that make up the sequence, as long as your "doer" function knows how to perform them.
How do you think about the velocity.js code regarding performance optimization?
What would be the best way to coordinate multiple (potentially dependent) animations? I am thinking about a kind of dispatcher or switchboard logic - it would be great to see an advanced example right from the author.
Thank you very much for your attention!