# Animate

Wrap anything (logo, screenshot, card, image) to give it a themed enter and exit. The swiss-army knife of reelcn.

```bash
npx shadcn add https://www.reelcn.dev/r/animate.json
```

Usage:

```tsx
<Animate effect="up" delay={10}>
  <Img src={staticFile("logo.png")} />
</Animate>
```

Use for:

- Entrances and exits for logos, screenshots, cards and anything without its own animation
- Quick prototypes before reaching for a dedicated component

Avoid:

- Headlines. Use `text-reveal`


## Props

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| delay? | `number` | — | Frames to wait before entering. |
| duration? | `number` | — | Enter duration in frames. Defaults to 0.6s. Some items reuse `duration` for an unrelated local timing. See that item's own prop docs. |
| exit? | `number \| boolean` | — | Exit at the end of the parent `<Sequence>`. `false` keeps it on screen, a number sets the exit length in frames. |
| motion? | `MotionPersonality` | — | Override the theme's motion personality. |
| poster? | `boolean` | — | Renders fully entered, with no exit: for a still frame or thumbnail. Defaults to `false`. |
| holdFrames? | `number` | — | Delays the start of the exit window by this many frames, for a minimum on-screen hold. Defaults to `0`. |
| effect? | `AnimateEffect` | `"up"` |  |
| exitEffect? | `AnimateEffect` | `"fade"` |  |
| distance? | `number` | `60` | Travel distance for directional effects, in design units. |
| children? | `ReactNode` | — |  |
| style? | `CSSProperties` | — |  |
| className? | `string` | — |  |