# Animate

The `Animate` component is a wrapper component used to animate its children. It supports different animation types and a customizable timeout duration.

### Usage

```javascript
import { Animate } from 'components/lib';

function MyComponent({ ...props }){
  return (
    <Animate type='pop' timeout={ 500 }>
      <div>Content to animate</div>
    </Animate>
  );
}
```

### Props

| Prop     | Description        | Required | Value                                            |
| -------- | ------------------ | -------- | ------------------------------------------------ |
| children | children to render | required | component                                        |
| type     | type of animation  | optional | string (slideup/slidedown/pop), default: slideup |
| timeout  | animation duration | optional | integer, default: 300                            |

### Notes

* The `Animate` component uses the `CSSTransition` component from `react-transition-group`.
* The `type` prop specifies the animation type.
* The `timeout` prop sets the duration of the animation.
* Custom styles for the animations should be defined in `animate.scss`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.usegravity.app/gravity-web/components/animate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
