fixed animation for firefox