# Frosted Glass Wipe

Elegant scene transition through a sliding pane of frosted glass.

> 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/frosted-glass-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 { FrostedGlassWipe } from "@/components/framecn/frosted-glass-wipe";
```

```tsx
<FrostedGlassWipe />
```

## API Reference

### FrostedGlassWipe

| Prop                 | Type        | Default   |
| -------------------- | ----------- | --------- |
| `from`               | `ReactNode` | `-`       |
| `to`                 | `ReactNode` | `-`       |
| `transitionStart`    | `number`    | `36`      |
| `transitionDuration` | `number`    | `30`      |
| `glassBlur`          | `number`    | `24`      |
| `speed`              | `number`    | `1`       |
| `fps`                | `number`    | `30`      |
| `durationInFrames`   | `number`    | `90`      |
| `width`              | `number`    | `1280`    |
| `height`             | `number`    | `720`     |
| `background`         | `string`    | `"black"` |
| `className`          | `string`    | `-`       |

## Notes

  The frosted glass effect uses CSS backdrop-filter for the blur. Browser
  support is good but not universal.