For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
60
Sponsor

Kinetic Slam

One word at a time, uppercase centered, slams in from above and scales down to rest.

Customize
120
1

Installation

$ pnpm dlx shadcn@latest add @framecn/caption-kinetic-slam

Usage

import { CaptionKineticSlam } from "@/components/framecn/caption-kinetic-slam";
import type { CaptionWord } from "@/components/framecn/caption-kinetic-slam";
const words: CaptionWord[] = [
  { text: "Every", start: 0.0, end: 0.35 },
  { text: "great", start: 0.35, end: 0.65 },
  // ...
];
 
<CaptionKineticSlam words={words} />;

API Reference

CaptionKineticSlam

PropTypeDefault
wordsCaptionWord[](demo words)
colorstring"#ffffff"
fontSizenumber120
fontWeightnumber900
backgroundstring"#0a0a0a"
speednumber1
fpsnumber30
durationInFramesnumber180
widthnumber1280
heightnumber720
classNamestring-

CaptionWord

FieldTypeDescription
textstringThe word text
startnumberStart time in seconds
endnumberEnd time in seconds

Notes