Changed to rAF

+ fixed animation bug