# Animations

The ExpansionPanel provides built-in animations for expanding and collapsing its content.

Animations are enabled by default with a duration of 300 milliseconds. To set a custom duration for both transitions, pass the duration in milliseconds to the [`animation`](https://www.telerik.com/kendo-react-ui/components/layout/api/expansionpanelprops#animation) property. To disable the animations, set the property to `false`.

The following example sets the animation duration to 150 milliseconds.

[Demo Source](https://demos.telerik.com/kendo-react-ui/layout/expansionpanel/animations/func/source.txt)

## Suggested Links

* [Learn about KendoReact Free.](https://www.telerik.com/kendo-react-ui/components/getting-started/free-vs-premium)
* [KendoReact Animation Components](https://www.telerik.com/kendo-react-ui/components/animation)
* [API Reference of the ExpansionPanel](https://www.telerik.com/kendo-react-ui/components/layout/api/expansionpanel)
* [API Reference of the ExpansionPanelProps](https://www.telerik.com/kendo-react-ui/components/layout/api/expansionpanelprops)
