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
48
600
1
Installation
$ pnpm dlx shadcn@latest add @framecn/text-fade-replace
Usage
import { TextFadeReplace } from "@/components/framecn/text-fade-replace";<TextFadeReplace from="value" to="value" />API Reference
TextFadeReplace
| Prop | Type | Default |
|---|---|---|
from | string | - |
to | string | - |
fontSize | number | 48 |
color | string | "#171717" |
fontWeight | number | 600 |
speed | number | 1 |
fps | number | FPS |
durationInFrames | number | DURATION_IN_FRAMES |
className | string | - |
Notes
Includes strikethrough variant
The component supports a strikethrough animation variant. Check the demo to see the strikethrough effect in action.
Both texts must have equal length
For the best cross-fade effect, ensure fromText and toText are
approximately the same length to avoid layout shift.