differnt ways to end animation