# Life-Cycle Hooks

When you declaratively add or remove a child element, all Animations call specific hooks during the entering or exiting of the element.

## Adding Child Elements

Each time you add a component to an entering animation, the Animations call the following hooks:

* [`onEnter`](https://www.telerik.com/kendo-react-ui/components/animation/api/animationprops#onenter)—Called before the animation starts.
* [`onEntering`](https://www.telerik.com/kendo-react-ui/components/animation/api/animationprops#onentering)—Called after the animation started.
* [`onEntered`](https://www.telerik.com/kendo-react-ui/components/animation/api/animationprops#onentered)—Called when the animation completes.

## Removing Child Elements

Each time you remove a component from an existing animation, the Animations call the following hooks:

* [`onExit`](https://www.telerik.com/kendo-react-ui/components/animation/api/animationprops#onexit)—Called before the animation starts.
* [`onExiting`](https://www.telerik.com/kendo-react-ui/components/animation/api/animationprops#onexiting)—Called after the animation started.
* [`onExited`](https://www.telerik.com/kendo-react-ui/components/animation/api/animationprops#onexited)—Called when the animation completes.

> At this point, the animated child is not available in the DOM. For DOM operations, pass a [`childFactory`](https://www.telerik.com/kendo-react-ui/components/animation/api/animationprops#childfactory) function.

## Suggested Links

* [Basic Configuration](https://www.telerik.com/kendo-react-ui/components/animation/configuration)
* [API Reference of the Animation Package](https://www.telerik.com/kendo-react-ui/components/animation/api/animationprops)
