Compositions
Core Primitives
Transitions
Typography
Customize
8
1
7
Installation
$ pnpm dlx shadcn@latest add @framecn/chromatic-aberration-wipe
Usage
import { ChromaticAberrationWipe } from "@/components/framecn/chromatic-aberration-wipe";<ChromaticAberrationWipe />API Reference
ChromaticAberrationWipe
| Prop | Type | Default |
|---|---|---|
from | ReactNode | - |
to | ReactNode | - |
direction | "left" | "right" | "left" |
transitionStart | number | 36 |
transitionDuration | number | 7 |
aberrationOffset | number | 8 |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 90 |
width | number | 1280 |
height | number | 720 |
background | string | "black" |
className | string | - |
Notes
RGB offset on peak frames
The RGB channels split and offset during the peak of the transition, creating a glitch effect. The intensity controls the offset amount.