Use CSS3 animation instead of JavaScript one.