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
96
700
20
8
6
1
Installation
$ pnpm dlx shadcn@latest add @framecn/rgb-glitch-text
Usage
import { RGBGlitchText } from "@/components/framecn/rgb-glitch-text";<RGBGlitchText text="value" />API Reference
RGBGlitchText
| Prop | Type | Default |
|---|---|---|
text | string | - |
fontSize | number | 96 |
color | string | "#171717" |
fontWeight | number | 700 |
glitchAt | number | 20 |
glitchDuration | number | 8 |
intensity | number | 6 |
seed | string | "glitch" |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 60 |
className | string | - |
Notes
RGB channels offset with jitter
The text renders three offset channels (red, green, blue) with randomized horizontal jitter. The intensity controls the offset amount.