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
4
Installation
$ pnpm dlx shadcn@latest add @framecn/animated-line-chart
Usage
import { AnimatedLineChart } from "@/components/framecn/animated-line-chart";<AnimatedLineChart />API Reference
AnimatedLineChart
| Prop | Type | Default |
|---|---|---|
data | number[] | [12, 19, 8, 15, 22, 18, 28, 25, 32] |
width | number | 1000 |
height | number | 500 |
strokeColor | string | "#22c55e" |
strokeWidth | number | 4 |
background | string | "#0a0a0a" |
gridColor | string | "#27272a" |
showDot | boolean | true |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 90 |
className | string | - |
Notes
SVG stroke-dashoffset animation
The chart line is drawn using stroke-dashoffset animation for a smooth left-to-right reveal effect.