Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: adde soft-blur-reveal
dev_wandrybd8a9fb78ffa
diff --git a/config/site.ts b/config/site.tsindex 0a35cabb..f39202bf 100644--- a/config/site.ts+++ b/config/site.ts@@ -7,7 +7,7 @@ export const MINT = "#A1EEBD";export const GITHUB_URL = "https://github.com/kapishdima/remocn";/** Canonical example install command shown on the landing page. */-export const INSTALL_COMMAND = "npx shadcn@latest add remocn/blur-reveal";+export const INSTALL_COMMAND = "npx shadcn@latest add remocn/soft-blur-in";export const SPRING_BOUNCE = {type: "spring" as const,diff --git a/content/docs/components.mdx b/content/docs/components.mdxindex 89b0e851..7ef04794 100644--- a/content/docs/components.mdx+++ b/content/docs/components.mdx@@ -14,10 +14,10 @@ Text effects, reveals, and kinetic type.<ComponentCardGriditems={[{- name: "BlurReveal",- description: "Text fades in from a heavy blur into sharp focus",+ name: "SoftBlurIn",+ description: "Per-character fade-in with a gentle blur and upward motion",status: "stable",- href: "/docs/typography/blur-reveal",+ href: "/docs/typography/soft-blur-in",},{name: "StaggeredFadeUp",diff --git a/content/docs/getting-started/installation.mdx b/content/docs/getting-started/installation.mdxindex 25fa8b6a..ea2e3c2d 100644--- a/content/docs/getting-started/installation.mdx+++ b/content/docs/getting-started/installation.mdx@@ -17,21 +17,21 @@ Pick the defaults: remocn components are framework-agnostic and only need the pa## 2. Add a component-<InstallBlock name="blur-reveal" />+<InstallBlock name="soft-blur-in" />-This copies `blur-reveal.tsx` into `components/remocn/` (or wherever your `components.json` points).+This copies `soft-blur-in.tsx` into `components/remocn/` (or wherever your `components.json` points).## 3. Use it in a Remotion composition```tsximport { Composition } from "remotion";-import { BlurReveal } from "@/components/remocn/blur-reveal";+import { SoftBlurIn } from "@/components/remocn/soft-blur-in";export const RemotionRoot = () => (<Compositionid="HelloWorld"- component={BlurReveal}- durationInFrames={90}+ component={SoftBlurIn}+ durationInFrames={60}fps={30}width={1280}height={720}diff --git a/content/docs/typography/index.mdx b/content/docs/typography/index.mdxindex b6a67493..73c32269 100644--- a/content/docs/typography/index.mdx+++ b/content/docs/typography/index.mdx@@ -10,10 +10,10 @@ Every way text can move, fade, glitch, or stretch across the screen. From quiet<ComponentCardGriditems={[{- name: "BlurReveal",- description: "Text fades in from a heavy blur into sharp focus",+ name: "SoftBlurIn",+ description: "Per-character fade-in with a gentle blur and upward motion",status: "stable",- href: "/docs/typography/blur-reveal",+ href: "/docs/typography/soft-blur-in",},{name: "StaggeredFadeUp",diff --git a/content/docs/typography/meta.json b/content/docs/typography/meta.jsonindex cb5a791f..53230209 100644--- a/content/docs/typography/meta.json+++ b/content/docs/typography/meta.json@@ -3,7 +3,7 @@"collapsible": false,"pages": ["index",- "blur-reveal",+ "soft-blur-in","staggered-fade-up","masked-slide-reveal","tracking-in",diff --git a/content/docs/typography/blur-reveal.mdx b/content/docs/typography/soft-blur-in.mdxsimilarity index 68%rename from content/docs/typography/blur-reveal.mdxrename to content/docs/typography/soft-blur-in.mdxindex eafb2bdd..a2fc5c5e 100644--- a/content/docs/typography/blur-reveal.mdx+++ b/content/docs/typography/soft-blur-in.mdx@@ -1,30 +1,30 @@----title: Blur Reveal-description: Text fades in from a heavy blur into sharp focus+title: Soft Blur In+description: Per-character fade-in with a gentle blur and upward motion----<ComponentPreview name="blur-reveal" />+<ComponentPreview name="soft-blur-in" />## Installation-<InstallBlock name="blur-reveal" />+<InstallBlock name="soft-blur-in" />## Usage```tsx// src/Root.tsximport { Composition } from "remotion";-import { BlurReveal } from "@/components/remocn/blur-reveal";+import { SoftBlurIn } from "@/components/remocn/soft-blur-in";-const BlurRevealScene = () => (- <BlurReveal text="Hello, world" blur={12} fontSize={72} />+const SoftBlurInScene = () => (+ <SoftBlurIn text="Think different." blur={12} fontSize={72} />);export const RemotionRoot = () => (<Composition- id="BlurReveal"- component={BlurRevealScene}- durationInFrames={90}+ id="SoftBlurIn"+ component={SoftBlurInScene}+ durationInFrames={60}fps={30}width={1280}height={720}@@ -40,20 +40,20 @@ Pair with `Backdrop` to place the text inside a full-frame fill with a rounded,```tsximport { Composition } from "remotion";-import { BlurReveal } from "@/components/remocn/blur-reveal";+import { SoftBlurIn } from "@/components/remocn/soft-blur-in";import { Backdrop } from "@/components/remocn/backdrop";-const BlurRevealScene = () => (+const SoftBlurInScene = () => (<Backdrop fill={{ type: "color", value: "#ffffff" }}>- <BlurReveal text="Hello, world" blur={12} fontSize={72} />+ <SoftBlurIn text="Think different." blur={12} fontSize={72} /></Backdrop>);export const RemotionRoot = () => (<Composition- id="BlurReveal"- component={BlurRevealScene}- durationInFrames={90}+ id="SoftBlurIn"+ component={SoftBlurInScene}+ durationInFrames={60}fps={30}width={1280}height={720}@@ -74,13 +74,13 @@ export const RemotionRoot = () => ({name: "blur",type: "number",- default: "10",- description: "Initial blur radius in pixels. Animates down to 0.",+ default: "12",+ description: "Initial blur radius in pixels. Animates down to 0 per character.",},{name: "fontSize",type: "number",- default: "48",+ default: "72",description: "Font size in pixels",},{diff --git a/lib/config/snippets.ts b/lib/config/snippets.tsindex 9a7e09ad..e17fd0cb 100644--- a/lib/config/snippets.ts+++ b/lib/config/snippets.ts@@ -5,16 +5,16 @@ import { LAVENDER, MINT, PEACH } from "@/config/site";// ---------------------------------------------------------------------------/** Shown inside the hero's glass-code-block player — the real remocn flow. */-export const HERO_CODE = `// npx shadcn@latest add remocn/blur-reveal remocn/mesh-gradient-bg+export const HERO_CODE = `// npx shadcn@latest add remocn/soft-blur-in remocn/mesh-gradient-bgimport { AbsoluteFill } from "remotion";-import { BlurReveal } from "@/components/remocn/blur-reveal";+import { SoftBlurIn } from "@/components/remocn/soft-blur-in";import { MeshGradientBg } from "@/components/remocn/mesh-gradient-bg";export function LaunchScene() {return (<AbsoluteFill><MeshGradientBg />- <BlurReveal text="Ship your launch video" />+ <SoftBlurIn text="Ship your launch video" /></AbsoluteFill>);}`;@@ -56,8 +56,8 @@ export const ADD: Step = {title: "Add a component",description:"Pull any primitive or composition straight into your project with the shadcn CLI — the code lands in your repo, yours to tweak.",- command: "npx shadcn@latest add remocn/blur-reveal",- component: "blur-reveal",+ command: "npx shadcn@latest add remocn/soft-blur-in",+ component: "soft-blur-in",accent: LAVENDER,};@@ -72,7 +72,7 @@ export const RENDER: Step = {/** A taste of what `remocn/<name>` pulls in — fills the featured card. */export const SAMPLE_COMPONENTS = [- "blur-reveal",+ "soft-blur-in","shimmer-sweep","frosted-glass-wipe","grid-pixelate-wipe",diff --git a/lib/customizer-config.ts b/lib/customizer-config.tsindex 800a5c47..cb80052e 100644--- a/lib/customizer-config.ts+++ b/lib/customizer-config.ts@@ -32,7 +32,7 @@ export interface ComponentConfig {compositionHeight: number;/*** Import statement shown in the generated code snippet.- * Example: `import { BlurReveal } from "@/components/remocn/blur-reveal";`+ * Example: `import { SoftBlurIn } from "@/components/remocn/soft-blur-in";`*/importPath: string;/**diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 0df72221..91ffaca1 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -7,8 +7,8 @@ import { AnimatedBarChart } from "@/registry/remocn/animated-bar-chart";import { animatedBarChartConfig } from "@/registry/remocn/animated-bar-chart/config";import { AnimatedLineChart } from "@/registry/remocn/animated-line-chart";import { animatedLineChartConfig } from "@/registry/remocn/animated-line-chart/config";-import { BlurReveal } from "@/registry/remocn/blur-reveal";-import { blurRevealConfig } from "@/registry/remocn/blur-reveal/config";+import { SoftBlurIn } from "@/registry/remocn/soft-blur-in";+import { softBlurInConfig } from "@/registry/remocn/soft-blur-in/config";import { BrowserFlow } from "@/registry/remocn/browser-flow";import { browserFlowConfig } from "@/registry/remocn/browser-flow/config";import { ChatToPreviewLayout } from "@/registry/remocn/chat-to-preview-layout";@@ -192,7 +192,7 @@ export interface RegistryEntry {}const registry: Record<string, RegistryEntry> = {- "blur-reveal": { Component: BlurReveal, config: blurRevealConfig },+ "soft-blur-in": { Component: SoftBlurIn, config: softBlurInConfig },typewriter: { Component: Typewriter, config: typewriterConfig },"inline-highlight": {Component: InlineHighlight,diff --git a/registry/remocn/blur-reveal/index.tsx b/registry/remocn/blur-reveal/index.tsxdeleted file mode 100644index 2c5f6836..00000000--- a/registry/remocn/blur-reveal/index.tsx+++ /dev/null@@ -1,66 +0,0 @@-"use client";--import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";--export interface BlurRevealProps {- text: string;- className?: string;- blur?: number;- fontSize?: number;- color?: string;- fontWeight?: number;- speed?: number;-}--export function BlurReveal({- text,- className,- blur = 10,- fontSize = 48,- color = "#171717",- fontWeight = 600,- speed = 1,-}: BlurRevealProps) {- const frame = useCurrentFrame() * speed;- const { durationInFrames } = useVideoConfig();-- const opacity = interpolate(frame, [0, durationInFrames * 0.6], [0, 1], {- extrapolateRight: "clamp",- });-- const blurAmount = interpolate(- frame,- [0, durationInFrames * 0.6],- [blur, 0],- { extrapolateRight: "clamp" },- );-- return (- <div- style={{- position: "absolute",- inset: 0,- display: "flex",- alignItems: "center",- justifyContent: "center",- background: "transparent",- }}- >- <span- className={className}- style={{- opacity,- filter: `blur(${blurAmount}px)`,- fontSize,- fontWeight,- color,- letterSpacing: "-0.05em",- fontFamily:- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",- }}- >- {text}- </span>- </div>- );-}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 530a96fe..2b7a0cc0 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -4,18 +4,18 @@"homepage": "https://remocn.dev","items": [{- "name": "blur-reveal",+ "name": "soft-blur-in","type": "registry:component",- "title": "Blur Reveal",- "description": "Text fades in from a heavy blur into sharp focus.",+ "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": "blur-reveal/index.tsx",+ "path": "soft-blur-in/index.tsx","type": "registry:component",- "target": "components/remocn/blur-reveal.tsx"+ "target": "components/remocn/soft-blur-in.tsx"}]},diff --git a/registry/remocn/blur-reveal/config.ts b/registry/remocn/soft-blur-in/config.tssimilarity index 73%rename from registry/remocn/blur-reveal/config.tsrename to registry/remocn/soft-blur-in/config.tsindex a2049a76..45860e86 100644--- a/registry/remocn/blur-reveal/config.ts+++ b/registry/remocn/soft-blur-in/config.ts@@ -6,14 +6,14 @@ import {W,} from "@/lib/customizer-config";-export const blurRevealConfig: ComponentConfig = {- componentName: "BlurReveal",- importPath: "@/components/remocn/blur-reveal",+export const softBlurInConfig: ComponentConfig = {+ componentName: "SoftBlurIn",+ importPath: "@/components/remocn/soft-blur-in",controls: {- text: { type: "text", default: "BlurReveal", label: "Text" },+ text: { type: "text", default: "Think different.", label: "Text" },blur: {type: "number",- default: 10,+ default: 12,min: 1,max: 30,step: 1,@@ -35,7 +35,7 @@ export const blurRevealConfig: ComponentConfig = {label: "Font weight",},},- durationInFrames: 90,+ durationInFrames: 60,fps: FPS,compositionWidth: W,compositionHeight: H,diff --git a/registry/remocn/soft-blur-in/index.tsx b/registry/remocn/soft-blur-in/index.tsxnew file mode 100644index 00000000..cba3888e--- /dev/null+++ b/registry/remocn/soft-blur-in/index.tsx@@ -0,0 +1,93 @@+"use client";++import { Easing, interpolate, useCurrentFrame } from "remotion";++export interface SoftBlurInProps {+ text: string;+ blur?: number;+ fontSize?: number;+ color?: string;+ fontWeight?: number;+ speed?: number;+ className?: string;+}++export function SoftBlurIn({+ text,+ blur = 12,+ fontSize = 72,+ color = "#171717",+ fontWeight = 600,+ speed = 1,+ className,+}: SoftBlurInProps) {+ const frame = useCurrentFrame() * speed;++ const chars = Array.from(text);+ const charDurationFrames = 27;+ const staggerFrames = 1;++ return (+ <div+ style={{+ position: "absolute",+ inset: 0,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ background: "transparent",+ }}+ >+ <span+ className={className}+ style={{+ fontSize,+ fontWeight,+ color,+ letterSpacing: "-0.05em",+ fontFamily:+ "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif",+ }}+ >+ {chars.map((char, i) => {+ const local = frame - i * staggerFrames;+ const easing = Easing.bezier(0.22, 1, 0.36, 1);+ const opacity = interpolate(+ local,+ [0, charDurationFrames],+ [0, 1],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp", easing },+ );+ const y = interpolate(+ local,+ [0, charDurationFrames],+ [16, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp", easing },+ );+ const blurAmount = interpolate(+ local,+ [0, charDurationFrames],+ [blur, 0],+ { extrapolateLeft: "clamp", extrapolateRight: "clamp", easing },+ );+ return (+ <span+ key={i}+ style={{+ display: "inline-block",+ whiteSpace: "pre",+ backfaceVisibility: "hidden",+ transformOrigin: "50% 55%",+ opacity,+ transform: `translateY(${y}px)`,+ filter: `blur(${blurAmount}px)`,+ }}+ >+ {char}+ </span>+ );+ })}+ </span>+ </div>+ );+}