Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: remove kinematic
dev_wandryce59853c2da9
diff --git a/content/docs/components.mdx b/content/docs/components.mdxindex 9fc93b50..89b0e851 100644--- a/content/docs/components.mdx+++ b/content/docs/components.mdx@@ -282,12 +282,6 @@ Scene transitions, camera moves, and stylized wipes.status: "stable",href: "/docs/transitions/frosted-glass-wipe",},- {- name: "KineticTypeMask",- description: "Use giant typography as a window into the next scene",- status: "stable",- href: "/docs/transitions/kinetic-type-mask",- },]}/>diff --git a/content/docs/transitions/index.mdx b/content/docs/transitions/index.mdxindex de8084d1..c0b899bf 100644--- a/content/docs/transitions/index.mdx+++ b/content/docs/transitions/index.mdx@@ -46,12 +46,6 @@ Wipes, slides, zooms, and camera moves between scenes. Group your scenes insidestatus: "stable",href: "/docs/transitions/frosted-glass-wipe",},- {- name: "KineticTypeMask",- description: "Use giant typography as a window into the next scene",- status: "stable",- href: "/docs/transitions/kinetic-type-mask",- },]}/>diff --git a/content/docs/transitions/kinetic-type-mask.mdx b/content/docs/transitions/kinetic-type-mask.mdxdeleted file mode 100644index 555e9660..00000000--- a/content/docs/transitions/kinetic-type-mask.mdx+++ /dev/null@@ -1,86 +0,0 @@-----title: Kinetic Type Mask-description: Use giant typography as a window into the next scene------<ComponentPreview name="kinetic-type-mask" />--## Installation--<InstallBlock name="kinetic-type-mask" />--## Usage--```tsx-// src/Root.tsx-import { Composition } from "remotion";-import { KineticTypeMask } from "@/components/remocn/kinetic-type-mask";--const KineticTypeMaskScene = () => (- <KineticTypeMask- from={<SceneA />-);--export const RemotionRoot = () => (- <Composition- id="KineticTypeMask"- component={KineticTypeMaskScene}- durationInFrames={90}- fps={30}- width={1280}- height={720}- />-);-```--## Props--<PropsTable- rows={[- {- name: "from",- type: "ReactNode",- description: "The outgoing scene rendered behind the text. Falls back to a labeled colored panel.",- },- {- name: "to",- type: "ReactNode",- description: "The incoming scene revealed through the text mask. Falls back to a labeled colored panel.",- },- {- name: "text",- type: "string",- default: '"NEXT"',- description: "The headline used as a clipping mask",- },- {- name: "transitionStart",- type: "number",- default: "durationInFrames * 0.3",- description: "Frame at which the hold (pre-zoom) begins",- },- {- name: "holdFrames",- type: "number",- default: "12",- description: "How long the text sits at rest before the zoom kicks in",- },- {- name: "transitionDuration",- type: "number",- default: "24",- description: "Length of the exponential scale-up in frames",- },- {- name: "maxScale",- type: "number",- default: "120",- description: "Final scale value applied to the text. Must be large enough that one letter's interior covers the screen.",- },- {- name: "className",- type: "string",- description: "Optional className for the outer container",- },- ]}-/>diff --git a/public/r/kinetic-type-mask.json b/public/r/kinetic-type-mask.jsondeleted file mode 100644index 5f672fa3..00000000--- a/public/r/kinetic-type-mask.json+++ /dev/null@@ -1,18 +0,0 @@-{- "$schema": "https://ui.shadcn.com/schema/registry-item.json",- "name": "kinetic-type-mask",- "title": "Kinetic Type Mask",- "description": "Use giant typography as a window into the next scene.",- "dependencies": [- "remotion"- ],- "files": [- {- "path": "registry/remocn/kinetic-type-mask/index.tsx",- "content": "\"use client\";\n\nimport { type ReactNode, useId } from \"react\";\nimport { Easing, interpolate, useCurrentFrame, useVideoConfig } from \"remotion\";\n\nexport interface KineticTypeMaskProps {\n from?: ReactNode;\n to?: ReactNode;\n text?: string;\n transitionStart?: number;\n holdFrames?: number;\n transitionDuration?: number;\n maxScale?: number;\n speed?: number;\n className?: string;\n}\n\nconst FONT_FAMILY =\n \"var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif\";\n\nfunction DefaultPanel({ label, color }: { label: string; color: string }) {\n return (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n background: color,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n fontFamily: FONT_FAMILY,\n fontSize: 96,\n fontWeight: 700,\n letterSpacing: \"-0.05em\",\n }}\n >\n {label}\n </div>\n );\n}\n\nexport function KineticTypeMask({\n from,\n to,\n text = \"NEXT\",\n transitionStart,\n holdFrames = 12,\n transitionDuration = 24,\n maxScale = 120,\n speed = 1,\n className,\n}: KineticTypeMaskProps) {\n const frame = useCurrentFrame() * speed;\n const { width, height, durationInFrames } = useVideoConfig();\n\n const start = transitionStart ?? Math.floor(durationInFrames * 0.3);\n const scaleStart = start + holdFrames;\n\n const scale = interpolate(\n frame,\n [scaleStart, scaleStart + transitionDuration],\n [1, maxScale],\n {\n extrapolateLeft: \"clamp\",\n extrapolateRight: \"clamp\",\n easing: Easing.bezier(0.7, 0, 0.84, 0),\n },\n );\n\n const id = useId().replace(/[:#]/g, \"\");\n\n const fromContent = from ?? <DefaultPanel label=\"Scene A\" color=\"#0f172a\" />;\n const toContent = to ?? <DefaultPanel label=\"Scene B\" color=\"#f97316\" />;\n\n return (\n <div\n className={className}\n style={{\n position: \"absolute\",\n inset: 0,\n overflow: \"hidden\",\n background: \"black\",\n }}\n >\n <div style={{ position: \"absolute\", inset: 0 }}>{fromContent}</div>\n\n {scale < maxScale * 0.95 && (\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"black\",\n fontFamily: FONT_FAMILY,\n fontSize: height * 0.7,\n fontWeight: 900,\n transform: `scale(${scale})`,\n transformOrigin: \"center center\",\n willChange: \"transform\",\n }}\n >\n {text}\n </div>\n )}\n\n <div\n style={{\n position: \"absolute\",\n inset: 0,\n clipPath: `url(#${id})`,\n WebkitClipPath: `url(#${id})`,\n }}\n >\n <div style={{ position: \"absolute\", inset: 0 }}>{toContent}</div>\n </div>\n\n <svg\n width=\"100%\"\n height=\"100%\"\n viewBox={`0 0 ${width} ${height}`}\n style={{\n position: \"absolute\",\n inset: 0,\n pointerEvents: \"none\",\n }}\n >\n <defs>\n <clipPath id={id} clipPathUnits=\"userSpaceOnUse\">\n <text\n x={width / 2}\n y={height / 2}\n textAnchor=\"middle\"\n dominantBaseline=\"central\"\n fontFamily={FONT_FAMILY}\n fontWeight={900}\n fontSize={height * 0.7}\n style={{\n transform: `scale(${scale})`,\n transformOrigin: `${width / 2}px ${height / 2}px`,\n }}\n >\n {text}\n </text>\n </clipPath>\n </defs>\n </svg>\n </div>\n );\n}\n",- "type": "registry:component",- "target": "components/remocn/kinetic-type-mask.tsx"- }- ],- "type": "registry:component"-}\ No newline at end of filediff --git a/public/r/registry.json b/public/r/registry.jsonindex 4309377c..722a5707 100644--- a/public/r/registry.json+++ b/public/r/registry.json@@ -515,22 +515,6 @@],"type": "registry:component"},- {- "name": "kinetic-type-mask",- "title": "Kinetic Type Mask",- "description": "Use giant typography as a window into the next scene.",- "dependencies": [- "remotion"- ],- "files": [- {- "path": "registry/remocn/kinetic-type-mask/index.tsx",- "type": "registry:component",- "target": "components/remocn/kinetic-type-mask.tsx"- }- ],- "type": "registry:component"- },{"name": "spatial-push","title": "Spatial Push",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 394fecc3..b3338c6c 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -51,8 +51,6 @@ import { InfiniteMarquee } from "@/registry/remocn/infinite-marquee";import { infiniteMarqueeConfig } from "@/registry/remocn/infinite-marquee/config";import { InlineHighlight } from "@/registry/remocn/inline-highlight";import { inlineHighlightConfig } from "@/registry/remocn/inline-highlight/config";-import { KineticTypeMask } from "@/registry/remocn/kinetic-type-mask";-import { kineticTypeMaskConfig } from "@/registry/remocn/kinetic-type-mask/config";import { LandingCodeShowcase } from "@/registry/remocn/landing-code-showcase";import { landingCodeShowcaseConfig } from "@/registry/remocn/landing-code-showcase/config";import { LiveCodeCompilation } from "@/registry/remocn/live-code-compilation";@@ -262,10 +260,6 @@ const registry: Record<string, RegistryEntry> = {Component: FrostedGlassWipe,config: frostedGlassWipeConfig,},- "kinetic-type-mask": {- Component: KineticTypeMask,- config: kineticTypeMaskConfig,- },"spatial-push": { Component: SpatialPush, config: spatialPushConfig },"grid-pixelate-wipe": {Component: GridPixelateWipe,diff --git a/registry/remocn/kinetic-type-mask/config.ts b/registry/remocn/kinetic-type-mask/config.tsdeleted file mode 100644index 660bfca0..00000000--- a/registry/remocn/kinetic-type-mask/config.ts+++ /dev/null@@ -1,16 +0,0 @@-import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";--export const kineticTypeMaskConfig: ComponentConfig = {- componentName: "KineticTypeMask",- importPath: "@/components/remocn/kinetic-type-mask",- controls: {- text: { type: "text", default: "NEXT", label: "Text" },- holdFrames: { type: "number", default: 12, min: 0, max: 60, step: 1, label: "Hold frames" },- transitionDuration: { type: "number", default: 24, min: 8, max: 60, step: 1, label: "Transition duration" },- maxScale: { type: "number", default: 120, min: 20, max: 300, step: 5, label: "Max scale" },- },- durationInFrames: 90,- fps: FPS,- compositionWidth: W,- compositionHeight: H,-};diff --git a/registry/remocn/kinetic-type-mask/index.tsx b/registry/remocn/kinetic-type-mask/index.tsxdeleted file mode 100644index 96967c74..00000000--- a/registry/remocn/kinetic-type-mask/index.tsx+++ /dev/null@@ -1,152 +0,0 @@-"use client";--import { type ReactNode, useId } from "react";-import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";--export interface KineticTypeMaskProps {- from?: ReactNode;- to?: ReactNode;- text?: string;- transitionStart?: number;- holdFrames?: number;- transitionDuration?: number;- maxScale?: number;- speed?: number;- className?: string;-}--const FONT_FAMILY =- "var(--font-geist-sans), -apple-system, BlinkMacSystemFont, sans-serif";--function DefaultPanel({ label, color }: { label: string; color: string }) {- return (- <div- style={{- position: "absolute",- inset: 0,- background: color,- display: "flex",- alignItems: "center",- justifyContent: "center",- color: "white",- fontFamily: FONT_FAMILY,- fontSize: 96,- fontWeight: 700,- letterSpacing: "-0.05em",- }}- >- {label}- </div>- );-}--export function KineticTypeMask({- from,- to,- text = "NEXT",- transitionStart,- holdFrames = 12,- transitionDuration = 24,- maxScale = 120,- speed = 1,- className,-}: KineticTypeMaskProps) {- const frame = useCurrentFrame() * speed;- const { width, height, durationInFrames } = useVideoConfig();-- const start = transitionStart ?? Math.floor(durationInFrames * 0.3);- const scaleStart = start + holdFrames;-- const scale = interpolate(- frame,- [scaleStart, scaleStart + transitionDuration],- [1, maxScale],- {- extrapolateLeft: "clamp",- extrapolateRight: "clamp",- easing: Easing.bezier(0.7, 0, 0.84, 0),- },- );-- const id = useId().replace(/[:#]/g, "");-- const fromContent = from ?? <DefaultPanel label="Scene A" color="#0f172a" />;- const toContent = to ?? <DefaultPanel label="Scene B" color="#f97316" />;-- return (- <div- className={className}- style={{- position: "absolute",- inset: 0,- overflow: "hidden",- background: "black",- }}- >- <div style={{ position: "absolute", inset: 0 }}>{fromContent}</div>-- {scale < maxScale * 0.95 && (- <div- style={{- position: "absolute",- inset: 0,- display: "flex",- alignItems: "center",- justifyContent: "center",- color: "black",- fontFamily: FONT_FAMILY,- fontSize: height * 0.7,- fontWeight: 900,- transform: `scale(${scale})`,- transformOrigin: "center center",- willChange: "transform",- }}- >- {text}- </div>- )}-- <div- style={{- position: "absolute",- inset: 0,- clipPath: `url(#${id})`,- WebkitClipPath: `url(#${id})`,- }}- >- <div style={{ position: "absolute", inset: 0 }}>{toContent}</div>- </div>-- <svg- width="100%"- height="100%"- viewBox={`0 0 ${width} ${height}`}- style={{- position: "absolute",- inset: 0,- pointerEvents: "none",- }}- >- <defs>- <clipPath id={id} clipPathUnits="userSpaceOnUse">- <text- x={width / 2}- y={height / 2}- textAnchor="middle"- dominantBaseline="central"- fontFamily={FONT_FAMILY}- fontWeight={900}- fontSize={height * 0.7}- style={{- transform: `scale(${scale})`,- transformOrigin: `${width / 2}px ${height / 2}px`,- }}- >- {text}- </text>- </clipPath>- </defs>- </svg>- </div>- );-}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 1881dd41..d310f57b 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -451,20 +451,6 @@}]},- {- "name": "kinetic-type-mask",- "type": "registry:component",- "title": "Kinetic Type Mask",- "description": "Use giant typography as a window into the next scene.",- "dependencies": ["remotion"],- "files": [- {- "path": "kinetic-type-mask/index.tsx",- "type": "registry:component",- "target": "components/remocn/kinetic-type-mask.tsx"- }- ]- },{"name": "spatial-push","type": "registry:component",