Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: rebuild registry

dev_wandry0828af75c56b
diff --git a/public/r/blur-reveal.json b/public/r/blur-reveal.json
deleted file mode 100644
index 6d0c7b3d..00000000
--- a/public/r/blur-reveal.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "blur-reveal",
- "title": "Blur Reveal",
- "description": "Text fades in from a heavy blur into sharp focus.",
- "dependencies": [
- "remotion"
- ],
- "files": [
- {
- "path": "registry/remocn/blur-reveal/index.tsx",
- "content": "\"use client\";\n\nimport { interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface BlurRevealProps {\n text: string;\n className?: string;\n blur?: number;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n}\n\nexport function BlurReveal({\n text,\n className,\n blur = 10,\n fontSize = 48,\n color = \"#171717\",\n fontWeight = 600,\n speed = 1,\n}: BlurRevealProps) {\n const frame = useCurrentFrame() * speed;\n const { durationInFrames } = useVideoConfig();\n\n const opacity = interpolate(frame, [0, durationInFrames * 0.6], [0, 1], {\n extrapolateRight: \"clamp\",\n });\n\n const blurAmount = interpolate(\n frame,\n [0, durationInFrames * 0.6],\n [blur, 0],\n { extrapolateRight: \"clamp\" },\n );\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"transparent\",\n }}\n >\n <span\n className={className}\n style={{\n opacity,\n filter: `blur(${blurAmount}px)`,\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.05em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {text}\n </span>\n </div>\n );\n}\n",
- "type": "registry:component",
- "target": "components/remocn/blur-reveal.tsx"
- }
- ],
- "type": "registry:component"
-}
\ No newline at end of file
diff --git a/public/r/registry.json b/public/r/registry.json
index 8895d38b..75ac54ee 100644
--- a/public/r/registry.json
+++ b/public/r/registry.json
@@ -4,17 +4,17 @@
"homepage": "https://remocn.dev",
"items": [
{
- "name": "blur-reveal",
- "title": "Blur Reveal",
- "description": "Text fades in from a heavy blur into sharp focus.",
+ "name": "soft-blur-in",
+ "title": "Soft Blur In",
+ "description": "Per-character fade-in with a gentle blur and upward motion. Apple's signature hero-title reveal.",
"dependencies": [
"remotion"
],
"files": [
{
- "path": "registry/remocn/blur-reveal/index.tsx",
+ "path": "registry/remocn/soft-blur-in/index.tsx",
"type": "registry:component",
- "target": "components/remocn/blur-reveal.tsx"
+ "target": "components/remocn/soft-blur-in.tsx"
}
],
"type": "registry:component"
diff --git a/public/r/soft-blur-in.json b/public/r/soft-blur-in.json
new file mode 100644
index 00000000..5883abec
--- /dev/null
+++ b/public/r/soft-blur-in.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://ui.shadcn.com/schema/registry-item.json",
+ "name": "soft-blur-in",
+ "title": "Soft Blur In",
+ "description": "Per-character fade-in with a gentle blur and upward motion. Apple's signature hero-title reveal.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "registry/remocn/soft-blur-in/index.tsx",
+ "content": "\"use client\";\n\nimport { Easing, interpolate, useCurrentFrame } from \"remotion\";\n\nexport interface SoftBlurInProps {\n text: string;\n blur?: number;\n fontSize?: number;\n color?: string;\n fontWeight?: number;\n speed?: number;\n className?: string;\n}\n\nexport function SoftBlurIn({\n text,\n blur = 12,\n fontSize = 72,\n color = \"#171717\",\n fontWeight = 600,\n speed = 1,\n className,\n}: SoftBlurInProps) {\n const frame = useCurrentFrame() * speed;\n\n const chars = Array.from(text);\n const charDurationFrames = 27;\n const staggerFrames = 1;\n\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n background: \"transparent\",\n }}\n >\n <span\n className={className}\n style={{\n fontSize,\n fontWeight,\n color,\n letterSpacing: \"-0.05em\",\n fontFamily:\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\",\n }}\n >\n {chars.map((char, i) => {\n const local = frame - i * staggerFrames;\n const easing = Easing.bezier(0.22, 1, 0.36, 1);\n const opacity = interpolate(\n local,\n [0, charDurationFrames],\n [0, 1],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\", easing },\n );\n const y = interpolate(\n local,\n [0, charDurationFrames],\n [16, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\", easing },\n );\n const blurAmount = interpolate(\n local,\n [0, charDurationFrames],\n [blur, 0],\n { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\", easing },\n );\n return (\n <span\n key={i}\n style={{\n display: \"inline-block\",\n whiteSpace: \"pre\",\n backfaceVisibility: \"hidden\",\n transformOrigin: \"50% 55%\",\n opacity,\n transform: `translateY(${y}px)`,\n filter: `blur(${blurAmount}px)`,\n }}\n >\n {char}\n </span>\n );\n })}\n </span>\n </div>\n );\n}\n",
+ "type": "registry:component",
+ "target": "components/remocn/soft-blur-in.tsx"
+ }
+ ],
+ "type": "registry:component"
+}
\ No newline at end of file