Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
fix: linter
kapishdima1282340f9cd6
diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 95d161d0..0b7fc432 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -3,9 +3,11 @@ import { type ComponentConfig, SHARED_CONTROLS } from "@/lib/customizer-config";import { animatedBarChartConfig } from "@/registry/remocn/animated-bar-chart/config";import { animatedLineChartConfig } from "@/registry/remocn/animated-line-chart/config";+import { asciiDissolveConfig } from "@/registry/remocn/ascii-dissolve/config";import { backdropConfig } from "@/registry/remocn/backdrop/config";import { blurOutUpConfig } from "@/registry/remocn/blur-out-up/config";import { bottomUpLettersConfig } from "@/registry/remocn/bottom-up-letters/config";+import { caretWipeConfig } from "@/registry/remocn/caret-wipe/config";import { chatGptConfig } from "@/registry/remocn/chat-gpt/config";import { chatToPreviewLayoutConfig } from "@/registry/remocn/chat-to-preview-layout/config";import { checkListConfig } from "@/registry/remocn/check-list/config";@@ -27,6 +29,7 @@ import { glassCodeWalkConfig } from "@/registry/remocn/glass-code-walk/config";import { grainDissolveConfig } from "@/registry/remocn/grain-dissolve/config";import { handCountConfig } from "@/registry/remocn/hand-count/config";import { handwriteConfig } from "@/registry/remocn/handwrite/config";+import { iconScatterConfig } from "@/registry/remocn/icon-scatter/config";import { infiniteBentoPanConfig } from "@/registry/remocn/infinite-bento-pan/config";import { infiniteMarqueeConfig } from "@/registry/remocn/infinite-marquee/config";import { inkArrowConfig } from "@/registry/remocn/ink-arrow/config";@@ -52,15 +55,18 @@ import { perspectiveMarqueeConfig } from "@/registry/remocn/perspective-marquee/import { polaroidConfig } from "@/registry/remocn/polaroid/config";import { progressStepsConfig } from "@/registry/remocn/progress-steps/config";import { pushThroughConfig } from "@/registry/remocn/push-through/config";+import { reelConfig } from "@/registry/remocn/reel/config";import { rgbGlitchTextConfig } from "@/registry/remocn/rgb-glitch-text/config";import { rippleZoomConfig } from "@/registry/remocn/ripple-zoom/config";import { rollingNumberConfig } from "@/registry/remocn/rolling-number/config";import { rolodexFlipConfig } from "@/registry/remocn/rolodex-flip/config";import { scaleDownFadeConfig } from "@/registry/remocn/scale-down-fade/config";import { scribbleCircleConfig } from "@/registry/remocn/scribble-circle/config";+import { shaderCausticsConfig } from "@/registry/remocn/shader-caustics/config";import { shaderColorPanelsConfig } from "@/registry/remocn/shader-color-panels/config";import { shaderDitheringConfig } from "@/registry/remocn/shader-dithering/config";import { shaderDotOrbitConfig } from "@/registry/remocn/shader-dot-orbit/config";+import { shaderGemSmokeConfig } from "@/registry/remocn/shader-gem-smoke/config";import { shaderGodRaysConfig } from "@/registry/remocn/shader-god-rays/config";import { shaderGrainGradientConfig } from "@/registry/remocn/shader-grain-gradient/config";import { shaderLiquidMetalConfig } from "@/registry/remocn/shader-liquid-metal/config";@@ -72,10 +78,12 @@ import { shaderPulsingBorderConfig } from "@/registry/remocn/shader-pulsing-bordimport { shaderSimplexNoiseConfig } from "@/registry/remocn/shader-simplex-noise/config";import { shaderSmokeRingConfig } from "@/registry/remocn/shader-smoke-ring/config";import { shaderSpiralConfig } from "@/registry/remocn/shader-spiral/config";+import { shaderStrataConfig } from "@/registry/remocn/shader-strata/config";import { shaderSwirlConfig } from "@/registry/remocn/shader-swirl/config";import { shaderVoronoiConfig } from "@/registry/remocn/shader-voronoi/config";import { shaderWarpConfig } from "@/registry/remocn/shader-warp/config";import { shaderWaterConfig } from "@/registry/remocn/shader-water/config";+import { shaderWeaveConfig } from "@/registry/remocn/shader-weave/config";import { sharedAxisYConfig } from "@/registry/remocn/shared-axis-y/config";import { sharedAxisZConfig } from "@/registry/remocn/shared-axis-z/config";import { shimmerSweepConfig } from "@/registry/remocn/shimmer-sweep/config";@@ -102,14 +110,6 @@ import { whipPanConfig } from "@/registry/remocn/whip-pan/config";import { xFollowCardConfig } from "@/registry/remocn/x-follow-card/config";import { xFollowersOverviewConfig } from "@/registry/remocn/x-followers-overview/config";import { zoomBlurConfig } from "@/registry/remocn/zoom-blur/config";-import { asciiDissolveConfig } from "@/registry/remocn/ascii-dissolve/config";-import { caretWipeConfig } from "@/registry/remocn/caret-wipe/config";-import { iconScatterConfig } from "@/registry/remocn/icon-scatter/config";-import { reelConfig } from "@/registry/remocn/reel/config";-import { shaderCausticsConfig } from "@/registry/remocn/shader-caustics/config";-import { shaderGemSmokeConfig } from "@/registry/remocn/shader-gem-smoke/config";-import { shaderStrataConfig } from "@/registry/remocn/shader-strata/config";-import { shaderWeaveConfig } from "@/registry/remocn/shader-weave/config";import { iconActivityConfig } from "@/registry/remocn-icons/icon-activity/config";import { iconAlertTriangleConfig } from "@/registry/remocn-icons/icon-alert-triangle/config";import { iconArrowDownConfig } from "@/registry/remocn-icons/icon-arrow-down/config";diff --git a/registry/remocn/ascii-dissolve/index.tsx b/registry/remocn/ascii-dissolve/index.tsxindex 6d647fec..f0d68e6e 100644--- a/registry/remocn/ascii-dissolve/index.tsx+++ b/registry/remocn/ascii-dissolve/index.tsx@@ -1,19 +1,19 @@"use client";+import type {+ TransitionPresentation,+ TransitionPresentationComponentProps,+} from "@remotion/transitions";import React from "react";import {AbsoluteFill,- Easing,continueRender,delayRender,+ Easing,interpolate,random,useVideoConfig,} from "remotion";-import type {- TransitionPresentation,- TransitionPresentationComponentProps,-} from "@remotion/transitions";const clampOpts = {extrapolateLeft: "clamp" as const,@@ -143,7 +143,9 @@ const buildTextMask = (ctx.font = `${spec.fontWeight ?? 400} ${spec.fontSize}px ${spec.fontFamily}`;const spacing = (spec.letterSpacingEm ?? 0) * spec.fontSize;if (spacing !== 0) {- (ctx as CanvasRenderingContext2D & { letterSpacing?: string }).letterSpacing = `${spacing}px`;+ (+ ctx as CanvasRenderingContext2D & { letterSpacing?: string }+ ).letterSpacing = `${spacing}px`;}ctx.textAlign = "center";// Canvas "middle" baseline is computed from the em square and lands@@ -163,8 +165,8 @@ const buildTextMask = (for (let y = 0; y < rows; y++) {for (let x = 0; x < cols; x++) {let hits = 0;- if (data[((y * 2) * cols * 2 + x * 2) * 4 + 3] > 100) hits++;- if (data[((y * 2) * cols * 2 + x * 2 + 1) * 4 + 3] > 100) hits++;+ if (data[(y * 2 * cols * 2 + x * 2) * 4 + 3] > 100) hits++;+ if (data[(y * 2 * cols * 2 + x * 2 + 1) * 4 + 3] > 100) hits++;if (data[((y * 2 + 1) * cols * 2 + x * 2) * 4 + 3] > 100) hits++;if (data[((y * 2 + 1) * cols * 2 + x * 2 + 1) * 4 + 3] > 100) hits++;mask[y * cols + x] = hits;@@ -175,7 +177,12 @@ const buildTextMask = (const AsciiDissolvePresentation: React.FC<TransitionPresentationComponentProps<AsciiDissolveProps>-> = ({ children, presentationProgress, presentationDirection, passedProps }) => {+> = ({+ children,+ presentationProgress,+ presentationDirection,+ passedProps,+}) => {const {cellSize = 22,colorFront = "rgba(242,242,242,0.6)",@@ -221,9 +228,9 @@ const AsciiDissolvePresentation: React.FC<}, [fontsReady]);const fontSize = cellSize * 0.86;+ // biome-ignore lint/correctness/useExhaustiveDependencies: fontsReady is an intentional extra dep — remeasure the mono advance once the real webfonts loadconst advance = React.useMemo(() => measureAdvance(fontFamily, fontSize),- // eslint-disable-next-line react-hooks/exhaustive-deps[fontFamily, fontSize, fontsReady],);const cols = Math.ceil(width / advance);@@ -232,7 +239,12 @@ const AsciiDissolvePresentation: React.FC<// The zone styles need to know where the incoming text sits — a capsule// around its center line, derived from the letterform mask's bounds. The// mask itself is never displayed.- const zoneStyles: AsciiEnterStyle[] = ["clearing", "halo", "wave", "lime-echo"];+ const zoneStyles: AsciiEnterStyle[] = [+ "clearing",+ "halo",+ "wave",+ "lime-echo",+ ];const needZone = enterText !== undefined && zoneStyles.includes(enterStyle);const enterMask = React.useMemo(() =>@@ -240,7 +252,17 @@ const AsciiDissolvePresentation: React.FC<? buildTextMask(enterText, width, height, cols, rows, advance, cellSize): null,// eslint-disable-next-line react-hooks/exhaustive-deps- [enterText, needZone, fontsReady, width, height, cols, rows, advance, cellSize],+ [+ enterText,+ needZone,+ fontsReady,+ width,+ height,+ cols,+ rows,+ advance,+ cellSize,+ ],);const enterZone = React.useMemo(() => {if (enterMask === null) return null;@@ -348,7 +370,10 @@ const AsciiDissolvePresentation: React.FC<const py = (y + 0.5) * cellSize;const nx = Math.min(Math.max(px, enterZone.x0), enterZone.x1);dist = Math.hypot(px - nx, py - enterZone.cy);- distC = Math.hypot(px - (enterZone.x0 + enterZone.x1) / 2, py - enterZone.cy);+ distC = Math.hypot(+ px - (enterZone.x0 + enterZone.x1) / 2,+ py - enterZone.cy,+ );s = Math.max(0, 1 - dist / (enterZone.halfH + 64));}@@ -358,8 +383,7 @@ const AsciiDissolvePresentation: React.FC<} else if (enterStyle === "clearing" && enterZone !== null) {// Dissolve order biased by proximity: cells near the headline// vanish first, a granular cavity opens outward.- const order =- (1 - s) * 0.6 + random(`ascii-d-${x}-${y}`) * 0.4;+ const order = (1 - s) * 0.6 + random(`ascii-d-${x}-${y}`) * 0.4;const gone = Math.max(0,Math.min(1, (dissolveG * 1.35 - order) / 0.3),@@ -378,7 +402,10 @@ const AsciiDissolvePresentation: React.FC<let d = Math.max(0,- Math.min(0.999, (base * 0.72 + jitter * 0.28) * cellCoverage * 1.2 - 0.08),+ Math.min(+ 0.999,+ (base * 0.72 + jitter * 0.28) * cellCoverage * 1.2 - 0.08,+ ),);if (enterStyle === "halo" && enterZone !== null) {// A smooth radial attenuation: near cells slide down the ramp.@@ -391,7 +418,8 @@ const AsciiDissolvePresentation: React.FC<}const ch = ramp[Math.floor(d * rampLen)] ?? " ";const isAccent =- accentColor !== undefined && random(`ascii-a-${x}-${y}`) < accentDensity;+ accentColor !== undefined &&+ random(`ascii-a-${x}-${y}`) < accentDensity;mainRow += isAccent ? " " : ch;accentRow += isAccent ? ch : " ";@@ -422,7 +450,12 @@ const AsciiDissolvePresentation: React.FC<// with NO transform at all — it must sit pixel-exact under the letterform.const enterBlur = textMode? 0- : interpolate(p, [enterWindow[0], Math.min(1, enterWindow[1] + 0.05)], [10, 0], clampOpts);+ : interpolate(+ p,+ [enterWindow[0], Math.min(1, enterWindow[1] + 0.05)],+ [10, 0],+ clampOpts,+ );const childStyle: React.CSSProperties = textMode? { opacity: interpolate(p, enterWindow, [0, 1], clampOpts) }: {@@ -446,7 +479,11 @@ const AsciiDissolvePresentation: React.FC<color: colorFront,};- const renderLayer = (layerRows: string[], color: string, layerOpacity: number) =>+ const renderLayer = (+ layerRows: string[],+ color: string,+ layerOpacity: number,+ ) =>layerOpacity > 0.001 ? (<pre style={{ ...preStyle, color, opacity: layerOpacity }}>{layerRows.join("\n")}@@ -458,13 +495,16 @@ const AsciiDissolvePresentation: React.FC<<AbsoluteFill style={childStyle}>{children}</AbsoluteFill>{fieldAlive ? (<AbsoluteFill style={{ pointerEvents: "none" }}>- <AbsoluteFill style={{ background: colorBack, opacity: panelOpacity }} />+ <AbsoluteFill+ style={{ background: colorBack, opacity: panelOpacity }}+ /><AbsoluteFillstyle={enterStyle === "focus" && textMode? {opacity: focusFade,- filter: focusBlur > 0.01 ? `blur(${focusBlur}px)` : undefined,+ filter:+ focusBlur > 0.01 ? `blur(${focusBlur}px)` : undefined,}: undefined}diff --git a/registry/remocn/caret-wipe/index.tsx b/registry/remocn/caret-wipe/index.tsxindex d71ff28c..d8c23d0c 100644--- a/registry/remocn/caret-wipe/index.tsx+++ b/registry/remocn/caret-wipe/index.tsx@@ -1,11 +1,11 @@"use client";-import type React from "react";-import { AbsoluteFill, Easing, interpolate } from "remotion";import type {TransitionPresentation,TransitionPresentationComponentProps,} from "@remotion/transitions";+import type React from "react";+import { AbsoluteFill, Easing, interpolate } from "remotion";const clampOpts = {extrapolateLeft: "clamp" as const,@@ -38,7 +38,12 @@ export type CaretWipeProps = {// ---------------------------------------------------------------------------const CaretWipePresentation: React.FC<TransitionPresentationComponentProps<CaretWipeProps>-> = ({ children, presentationProgress, presentationDirection, passedProps }) => {+> = ({+ children,+ presentationProgress,+ presentationDirection,+ passedProps,+}) => {const {direction = "right",caretColor = "#C3E88D",diff --git a/registry/remocn/icon-scatter/index.tsx b/registry/remocn/icon-scatter/index.tsxindex 63df2ae8..f9d20a5a 100644--- a/registry/remocn/icon-scatter/index.tsx+++ b/registry/remocn/icon-scatter/index.tsx@@ -1,11 +1,11 @@"use client";-import type React from "react";-import { AbsoluteFill, Easing, interpolate, random } from "remotion";import type {TransitionPresentation,TransitionPresentationComponentProps,} from "@remotion/transitions";+import type React from "react";+import { AbsoluteFill, Easing, interpolate, random } from "remotion";// ===========================================================================// icon-scatter — a scene change made of icons.@@ -95,7 +95,9 @@ function placeIcons(count: number, seed: string): Placed[] {const jx = (random(`${seed}-jx-${i}`) - 0.5) * cellW * 0.7;const jy = (random(`${seed}-jy-${i}`) - 0.5) * cellH * 0.7;out.push({- path: ICON_PATHS[Math.floor(random(`${seed}-p-${i}`) * ICON_PATHS.length)],+ path: ICON_PATHS[+ Math.floor(random(`${seed}-p-${i}`) * ICON_PATHS.length)+ ],xPct: cellW * (col + 0.5) + jx,yPct: cellH * (row + 0.5) + jy,size: 34 + random(`${seed}-s-${i}`) * 40,@@ -123,10 +125,15 @@ const IconField: React.FC<{...clampOpts,easing: Easing.out(Easing.cubic),});- const scaleIn = interpolate(p, [icon.pStart, icon.pStart + 0.3], [0.4, 1], {- ...clampOpts,- easing: Easing.out(Easing.back(1.6)),- });+ const scaleIn = interpolate(+ p,+ [icon.pStart, icon.pStart + 0.3],+ [0.4, 1],+ {+ ...clampOpts,+ easing: Easing.out(Easing.back(1.6)),+ },+ );const outP = interpolate(p, [icon.pOut, 1], [0, 1], {...clampOpts,easing: Easing.in(Easing.cubic),@@ -140,7 +147,8 @@ const IconField: React.FC<{const tx = Math.cos(angle) * fly;const ty = Math.sin(angle) * fly;- const spin = icon.spin * interpolate(p, [icon.pStart, 1], [0, 1], clampOpts);+ const spin =+ icon.spin * interpolate(p, [icon.pStart, 1], [0, 1], clampOpts);const opacity = Math.min(draw, 1 - outP) * icon.strokeOpacity;if (opacity <= 0.001) return null;@@ -180,7 +188,12 @@ const IconField: React.FC<{const IconScatterPresentation: React.FC<TransitionPresentationComponentProps<IconScatterProps>-> = ({ children, presentationProgress, presentationDirection, passedProps }) => {+> = ({+ children,+ presentationProgress,+ presentationDirection,+ passedProps,+}) => {const {count = 15,color = "#fafafa",diff --git a/registry/remocn/reel/index.tsx b/registry/remocn/reel/index.tsxindex 8585e20e..3c4bea42 100644--- a/registry/remocn/reel/index.tsx+++ b/registry/remocn/reel/index.tsx@@ -44,12 +44,10 @@ export function Reel({return (<AbsoluteFill>{images.map((src, i) => {- const p = interpolate(- frame,- [i * step, i * step + reveal],- [0, 1],- { ...clamp, easing: EASE_OUT },- );+ const p = interpolate(frame, [i * step, i * step + reveal], [0, 1], {+ ...clamp,+ easing: EASE_OUT,+ });if (p <= 0) return null;const inset = (1 - p) * 50;const imgScale = interpolate(p, [0, 1], [1.08, 1], clamp);diff --git a/registry/remocn/shader-caustics/index.tsx b/registry/remocn/shader-caustics/index.tsxindex 75b1c8a0..e9e7e403 100644--- a/registry/remocn/shader-caustics/index.tsx+++ b/registry/remocn/shader-caustics/index.tsx@@ -151,15 +151,18 @@ export function ShaderCaustics({if (!gl) return;const compile = (type: number, src: string) => {- const shader = gl.createShader(type)!;+ const shader = gl.createShader(type);+ if (!shader) throw new Error("Failed to create WebGL shader");gl.shaderSource(shader, src);gl.compileShader(shader);return shader;};- const program = gl.createProgram()!;+ const program = gl.createProgram();+ if (!program) return;gl.attachShader(program, compile(gl.VERTEX_SHADER, VERT));gl.attachShader(program, compile(gl.FRAGMENT_SHADER, FRAG));gl.linkProgram(program);+ // biome-ignore lint/correctness/useHookAtTopLevel: gl.useProgram is a WebGL method, not a React hookgl.useProgram(program);const buf = gl.createBuffer();diff --git a/registry/remocn/shader-gem-smoke/index.tsx b/registry/remocn/shader-gem-smoke/index.tsxindex 61d5499d..6ba26594 100644--- a/registry/remocn/shader-gem-smoke/index.tsx+++ b/registry/remocn/shader-gem-smoke/index.tsx@@ -11,10 +11,8 @@ import {const NEUTRAL_COLORS = ["#3a3a5c", "#52527a"];-export interface ShaderGemSmokeProps extends Omit<- GemSmokeProps,- "frame" | "ref"-> {}+export interface ShaderGemSmokeProps+ extends Omit<GemSmokeProps, "frame" | "ref"> {}/*** Paper's Gem Smoke shader, driven deterministically by the current frame.diff --git a/registry/remocn/shader-strata/index.tsx b/registry/remocn/shader-strata/index.tsxindex b6c41a42..552c9841 100644--- a/registry/remocn/shader-strata/index.tsx+++ b/registry/remocn/shader-strata/index.tsx@@ -162,15 +162,18 @@ export function ShaderStrata({if (!gl) return;const compile = (type: number, src: string) => {- const shader = gl.createShader(type)!;+ const shader = gl.createShader(type);+ if (!shader) throw new Error("Failed to create WebGL shader");gl.shaderSource(shader, src);gl.compileShader(shader);return shader;};- const program = gl.createProgram()!;+ const program = gl.createProgram();+ if (!program) return;gl.attachShader(program, compile(gl.VERTEX_SHADER, VERT));gl.attachShader(program, compile(gl.FRAGMENT_SHADER, FRAG));gl.linkProgram(program);+ // biome-ignore lint/correctness/useHookAtTopLevel: gl.useProgram is a WebGL method, not a React hookgl.useProgram(program);const buf = gl.createBuffer();@@ -227,7 +230,17 @@ export function ShaderStrata({requestAnimationFrame(() => continueRender(handle)),);}- }, [frame, fps, speed, layers, amplitude, colors, accent, accentAmount, handle]);+ }, [+ frame,+ fps,+ speed,+ layers,+ amplitude,+ colors,+ accent,+ accentAmount,+ handle,+ ]);return (<div className={className} style={{ position: "absolute", inset: 0 }}>diff --git a/registry/remocn/shader-weave/index.tsx b/registry/remocn/shader-weave/index.tsxindex 5dd1aba8..a4a51f53 100644--- a/registry/remocn/shader-weave/index.tsx+++ b/registry/remocn/shader-weave/index.tsx@@ -180,15 +180,18 @@ export function ShaderWeave({if (!gl) return;const compile = (type: number, src: string) => {- const shader = gl.createShader(type)!;+ const shader = gl.createShader(type);+ if (!shader) throw new Error("Failed to create WebGL shader");gl.shaderSource(shader, src);gl.compileShader(shader);return shader;};- const program = gl.createProgram()!;+ const program = gl.createProgram();+ if (!program) return;gl.attachShader(program, compile(gl.VERTEX_SHADER, VERT));gl.attachShader(program, compile(gl.FRAGMENT_SHADER, FRAG));gl.linkProgram(program);+ // biome-ignore lint/correctness/useHookAtTopLevel: gl.useProgram is a WebGL method, not a React hookgl.useProgram(program);const buf = gl.createBuffer();