Fixing animation for Firefox