For the complete documentation index, see 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.
24
Sponsor

Code Diff Wipe

Before/after comparison with a clip-path slider revealing the new code.

Customize
1
60
20

Installation

$ pnpm dlx shadcn@latest add @framecn/code-diff-wipe

Usage

import { CodeDiffWipe } from "@/components/framecn/code-diff-wipe";
<CodeDiffWipe />

API Reference

CodeDiffWipe

PropTypeDefault
beforestringDEFAULT_BEFORE
afterstringDEFAULT_AFTER
languagestring"tsx"
backgroundstring"#0a0a0a"
accentstring"#0ea5e9"
transitionStartnumber20
transitionDurationnumber60
showHandlebooleantrue
speednumber1
fpsnumber30
durationInFramesnumber120
widthnumber1280
heightnumber720
classNamestring-

Notes