# Animation Object

The **Animation** object is returned by the **get_expandAnimation()** or **get_collapseAnimation()** method of the [RadToolBar](https://www.telerik.com/products/aspnet-ajax/documentation/controls/toolbar/client-side-programming/objects/radtoolbar-object) client object. The following table lists its methods:

| Name             | Parameters  | Return Type | Description                                                    |
| ---------------- | ----------- | ----------- | -------------------------------------------------------------- |
| **get_duration** | none        | integer     | Returns the duration, in milliseconds, of the animated effect. |
| **set_duration** | integer     | none        | Sets the duration, in milliseconds, of the animated effect.    |
| **get_type**     | none        | enumeration | Returns the type of the animated effect.                       |
| **set_type**     | enumeration | none        | Sets the type of the animated effect.                          |
