Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How did you make that really cool animation on the homepage? I have been attempting to do this myself with javascript setTimeout mixed with css3 animation but its freakin awful, because it's one just massive callback inside a callback. it must be indented like 60 times near the end of my animation.


To handle the callback pyramid of doom, look into javascript promises.

Another option is using a timeline based tool like Sencha's Animator: http://www.sencha.com/products/animator


A very high tech animated gif.


maybe https://github.com/caolan/async is the answer?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: