# Swipe Transition Wipe

Quick swipe transition between scenes.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

## Installation

<TabsTrigger value="cli">Command</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>

```bash
npx shadcn@latest add @framecn/swipe-transition-wipe
```

<Step>Copy and paste the following code into your project.</Step>

<Step>Update the import paths to match your project setup.</Step>

## Usage

```tsx
import { SwipeTransitionWipe } from "@/components/framecn/swipe-transition-wipe";
```

```tsx
<SwipeTransitionWipe />
```

## API Reference

### SwipeTransitionWipe

| Prop               | Type                | Default     |
| ------------------ | ------------------- | ----------- |
| `sceneA`           | `ReactNode`         | `-`         |
| `sceneB`           | `ReactNode`         | `-`         |
| `labelA`           | `string`            | `"First"`   |
| `labelB`           | `string`            | `"Second"`  |
| `colorA1`          | `string`            | `"#0ea5e9"` |
| `colorA2`          | `string`            | `"#1e3a8a"` |
| `colorB1`          | `string`            | `"#f97316"` |
| `colorB2`          | `string`            | `"#9333ea"` |
| `background`       | `string`            | `"#050505"` |
| `direction`        | `"left" \| "right"` | `"left"`    |
| `swipeAt`          | `number`            | `30`        |
| `parallaxFactor`   | `number`            | `0.6`       |
| `dimStrength`      | `number`            | `0.4`       |
| `speed`            | `number`            | `1`         |
| `fps`              | `number`            | `30`        |
| `durationInFrames` | `number`            | `90`        |
| `className`        | `string`            | `-`         |

## Notes

  The transition uses a quick swipe in the specified direction. Duration is
  typically shorter for a snappier feel.