feat(1.x): add leave animations hook