pros and cons of CSS/JavaScript based animation