A wavy liquid front with a bulging belly pours across the frame, led by a colored rim that moves out of step with it. Reversing drains it back the way it came.
Runner 2 / Colorway
Mint
$148
npx shadcn@latest add https://hyperblur.dev/r/transition-liquid-wipe.jsonWorks in any React project set up with the shadcn CLI. The file lands in components/hyperblur/transition-liquid-wipe.tsx.
import { TransitionLiquidWipe } from "@/components/hyperblur/transition-liquid-wipe"
<TransitionLiquidWipe active={coral} direction="right" from={<Mint />} to={<Coral />} />| Prop | Type | Default | Description |
|---|---|---|---|
| from | ReactNode | built-in scene | The first view, shown while active is false. You can also pass two children instead of from and to. |
| to | ReactNode | built-in scene | The second view, shown while active is true. |
| active | boolean | Controlled state. False shows from, true shows to. Pair with onActiveChange. | |
| defaultActive | boolean | false | Initial state when uncontrolled. |
| onActiveChange | (active: boolean) => void | Called whenever the view switches, including switches made by autoPlay. | |
| autoPlay | boolean | false | Switch back and forth by itself. Stops when the user prefers reduced motion. |
| interval | number | 2800 | Milliseconds between switches when autoPlay is on. |
| duration | number | 1250 | Pour time in milliseconds. |
| direction | "right" | "left" | "up" | "right" | Direction the liquid travels. |
| accent | string | "#2f7bff" | Start color of the rim ahead of the liquid. |
| accentEnd | string | "#7fb3ff" | End color of the rim gradient. |