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
0.4
0.6
1
30
Installation
$ pnpm dlx shadcn@latest add @framecn/swipe-transition-wipe
Usage
import { SwipeTransitionWipe } from "@/components/framecn/swipe-transition-wipe";<SwipeTransitionWipe />API Reference
SwipeTransitionWipe
| Prop | Type | Default |
|---|---|---|
sceneA | ReactNode | - |
sceneB | ReactNode | - |
labelA | string | "First" |
labelB | string | "Second" |
colorA1 | string | "#0ea5e9" |
colorA2 | string | "#1e3a8a" |
colorB1 | string | "#f97316" |
colorB2 | string | "#9333ea" |
background | string | "#050505" |
direction | "left" | "right" | "left" |
swipeAt | number | 30 |
parallaxFactor | number | 0.6 |
dimStrength | number | 0.4 |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 90 |
className | string | - |
Notes
Quick directional swipe
The transition uses a quick swipe in the specified direction. Duration is typically shorter for a snappier feel.