Captions
Compositions
Core Primitives
Transitions
Typography
- Blur Reveal
- Staggered Fade Up
- Masked Slide Reveal
- Tracking In
- Inline Highlight
- Marker Highlight
- Shimmer Sweep
- Typewriter
- Text Fade Replace
- Slot Machine Roll
- Infinite Marquee
- Perspective Marquee
- Matrix Decode
- RGB Glitch Text
- Strikethrough Replace
- Blur Out Up
- Bottom Up Letters
- Top Down Letters
- Per Character Rise
- Soft Blur In
- Micro Scale Fade
- Scale Down Fade
- Focus Blur Resolve
- Spring Scale In
- Line by Line Slide
- Mask Reveal Up
- Short Slide Right
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
| Prop | Type | Default |
|---|---|---|
before | string | DEFAULT_BEFORE |
after | string | DEFAULT_AFTER |
language | string | "tsx" |
background | string | "#0a0a0a" |
accent | string | "#0ea5e9" |
transitionStart | number | 20 |
transitionDuration | number | 60 |
showHandle | boolean | true |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 120 |
width | number | 1280 |
height | number | 720 |
className | string | - |
Notes
Before/after code comparison
A clip-path slider reveals new code over old code. Great for showing code changes or refactoring diffs.