Update animation for cross-browser