Skip to content
Menu

Animation

Tile reveal swap

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.

Using Tile reveal swap

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

Customize the preview

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

ControlTypeDefaultPreview limits
tileSizenumber44From 16 to 96; step 4
patternselectcenterOptions: random, center, edges, leftToRight, diagonal, spiral
durationnumber520From 200 to 1400; step 20
spinnumber90From 0 to 180; step 15
triggerselecthoverOptions: hover, click
accentcolor#7C5CFFNo additional limit in the metadata.
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.

Connect your agent

Related open components