# Pixel Trail

> You can customize the individual pixels by passing a pixelClassName prop.  1. The component operates by dividing the container into a grid of pixels and dynamically recoloring them as you move your cursor. Each pixel is represented by a single div element, so perf may be impacted when using a large number of pixels, especially on the first render.  2. Keep the z-index of the effect's container lower than the rest of your content, so the pointer-events will captured by all of your other elements.

- Author: [Daniel Petho](https://21st.dev/@danielpetho)
- Library: [Fancy Components](https://21st.dev/@danielpetho/library/fancy-components)
- License: mit
- Tags: Landing Page, Background
- npm dependencies: uuid, framer-motion
- Live preview: https://21st.dev/@danielpetho/components/pixel-trail

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/danielpetho/pixel-trail?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/landing-page.md
