Considered Css3 animation in JS