bendc / animateplus

A+ animation module for the modern web
MIT License
5.96k stars 280 forks source link

Best practice/function to make animated sequence #6

Closed eramdam closed 9 years ago

eramdam commented 9 years ago

This lib is awesome but I'm struggling to do animated sequence without ending up with a nested callbacks hell. Any best practice for this, or even better, a runSequence-like method?

bendc commented 9 years ago

Thanks! There are a few different options and the appropriate implementation will depend on the result you're looking for, but here's one possible way to do it.

eramdam commented 9 years ago

@bendc Thanks! Maybe would be useful to add this simple exemple in the README ? :)