small css simplification on animations