# Animations

The ActionSheet in [adaptive mode](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/actionsheet/configuration/adaptive) supports opening and closing animations.

By default, the ActionSheet animations are disabled, and the component opens and closes instantly.

You can modify the opening and closing animations through the `open` and `close` options of the `animation` configuration. These properties are effective only when the `adaptive` mode is enabled.

The following example demonstrates how to specify animation effects with duration when the ActionSheet opens and closes.

```dojo
 <button id="open">Open</button>
    <div id="actionsheet"></div>
    <script>
      var actionsheet = $("#actionsheet")
        .kendoActionSheet({
          title: "Select item",
          adaptive: true,
          animation: {
            open: {
              effects: "slideIn:down",
              duration: 1500,
            },
            close: {
              effects: "slideIn:down",
              duration: 1500,
            },
          },
          items: [
            {
              text: "Edit Item",
              icon: "pencil"
            },
            {
              text: "Add to Favorites",
              icon: "heart"
            },
            {
              text: "Upload New",
              icon: "upload"
            },
            {
              text: "Cancel",
              icon: "cancel",
              group: "bottom"
            },
          ],
        })
        .data("kendoActionSheet");

      $('#open').on('click', function(){
        actionsheet.open();
      })
    </script>
```

## See Also

* [Animation of the ActionSheet (Demo)](https://demos.telerik.com/kendo-ui/actionsheet/animation)
* [JavaScript API Reference of the ActionSheet](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/actionsheet)
