modify animation condition