# Animated Background

> The AnimatedBackground component visually highlights selected items by sliding a background into view when hovered over or clicked. This smooth transition helps users focus on the active item, making it ideal for interactive lists, menus, or navigations where clear selection feedback is important.

- Author: [Julien Thibeaut](https://21st.dev/@ibelick)
- Library: [Motion Primitives](https://21st.dev/@ibelick/library/motion-primitives)
- License: mit
- Tags: Card, Animation, Landing Page, Features, Grid
- npm dependencies: framer-motion
- Live preview: https://21st.dev/@ibelick/components/animated-background

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/ibelick/animated-background?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/card.md
