animation for different browsers