Adding reset phase to animations