# Tile reveal swap

https://fieldbook.lizardi.mx/components/tile-reveal-swap

Category: Animation
![Still of the Tile reveal swap component, a Fieldbook UI component in Animation.](https://fieldbook.lizardi.mx/thumbs/tile-reveal-swap.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/tile-reveal-swap-1d19e7f8b0.mp4 (5 s, silent)

Tile reveal swap: Two panels trade places tile by tile, each tile spinning and scaling as it flips, in an order steered from the center, the edges or a spiral.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| tileSize | number | 44 | From 16 to 96; step 4 |
| pattern | select | center | Options: random, center, edges, leftToRight, diagonal, spiral |
| duration | number | 520 | From 200 to 1400; step 20 |
| spin | number | 90 | From 0 to 180; step 15 |
| trigger | select | hover | Options: hover, click |
| accent | color | #7C5CFF | No additional limit in the metadata. |

## Usage notes

Tile reveal swap uses the card preview frame with a light/dark theme setting.

### Which frameworks are available for Tile reveal swap?

Tile reveal swap is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

### What does Tile reveal swap depend on?

The React metadata lists these npm dependencies beyond React: clsx.

### What accessibility details are visible in Tile reveal swap?

The React source for Tile reveal swap includes: native elements (button); attributes and handlers (aria-hidden, aria-label, aria-pressed). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Tile reveal swap handle reduced motion?

Tile reveal swap reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "tile-reveal-swap",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Composable Reveal](https://fieldbook.lizardi.mx/components/composable-reveal)
- [Directional Slide In](https://fieldbook.lizardi.mx/components/directional-slide-in)
- [Orbiting Avatar Intro](https://fieldbook.lizardi.mx/components/orbiting-avatar-intro)
- [Archetype morph shape](https://fieldbook.lizardi.mx/components/archetype-morph-shape)
- [Burst particle emitter](https://fieldbook.lizardi.mx/components/burst-particle-emitter)
- [Crank sea automaton](https://fieldbook.lizardi.mx/components/crank-sea-automaton)
