# Stacked Animations

All Animations extend the [`Animation`](https://www.telerik.com/kendo-react-ui/components/animation/api/animationprops) component.

However, the Push and Zoom Animations further extend `Animation` by using the [`stackChildren`](https://www.telerik.com/kendo-react-ui/components/animation/api/pushprops#stackchildren) options and enable you to stack animations.

## Entering and Exiting Child Elements

To stack entering and exiting child elements within the same block container, set the `stackChildren` property to `true`. The stack effect is most suitable for replacing an existing child element with a new one.

[Demo Source](https://demos.telerik.com/kendo-react-ui/animation/stacked/enter-exit/func/source.txt)

## Dynamic Calculation of Container Size

When `stackChildren` is set to `true`, the Push and Zoom Animations dynamically calculate the size of their animation container based on the size of the entering child, while rendering both animations in the same container.

[Demo Source](https://demos.telerik.com/kendo-react-ui/animation/stacked/dynamic/func/source.txt)

## 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)
