fix animation for firefox