Fixing Firefox animation bugs