Skip to content

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

feat: per-character-rise

dev_wandrye65fe2ebfe05
diff --git a/content/docs/components.mdx b/content/docs/components.mdx
index 7ef04794..f3d90d98 100644
--- a/content/docs/components.mdx
+++ b/content/docs/components.mdx
@@ -19,6 +19,12 @@ Text effects, reveals, and kinetic type.
status: "stable",
href: "/docs/typography/soft-blur-in",
},
+ {
+ name: "PerCharacterRise",
+ description: "Letters slide up from below with no blur — crisp and kinetic",
+ status: "stable",
+ href: "/docs/typography/per-character-rise",
+ },
{
name: "StaggeredFadeUp",
description: "Words rise from below with a soft cascading delay",
diff --git a/content/docs/typography/index.mdx b/content/docs/typography/index.mdx
index 73c32269..3171f522 100644
--- a/content/docs/typography/index.mdx
+++ b/content/docs/typography/index.mdx
@@ -15,6 +15,12 @@ Every way text can move, fade, glitch, or stretch across the screen. From quiet
status: "stable",
href: "/docs/typography/soft-blur-in",
},
+ {
+ name: "PerCharacterRise",
+ description: "Letters slide up from below with no blur — crisp and kinetic",
+ status: "stable",
+ href: "/docs/typography/per-character-rise",
+ },
{
name: "StaggeredFadeUp",
description: "Words rise from below with a soft cascading delay",
diff --git a/content/docs/typography/meta.json b/content/docs/typography/meta.json
index 53230209..e0bafb94 100644
--- a/content/docs/typography/meta.json
+++ b/content/docs/typography/meta.json
@@ -4,6 +4,7 @@
"pages": [
"index",
"soft-blur-in",
+ "per-character-rise",
"staggered-fade-up",
"masked-slide-reveal",
"tracking-in",
diff --git a/content/docs/typography/per-character-rise.mdx b/content/docs/typography/per-character-rise.mdx
new file mode 100644
index 00000000..c38a7162
--- /dev/null
+++ b/content/docs/typography/per-character-rise.mdx
@@ -0,0 +1,104 @@
+---
+title: Per Character Rise
+description: Letters slide up from below with no blur - crisp and kinetic
+---
+
+<ComponentPreview name="per-character-rise" />
+
+## Installation
+
+<InstallBlock name="per-character-rise" />
+
+## Usage
+
+```tsx
+// src/Root.tsx
+import { Composition } from "remotion";
+import { PerCharacterRise } from "@/components/remocn/per-character-rise";
+
+const PerCharacterRiseScene = () => (
+ <PerCharacterRise text="One more thing." distance={32} fontSize={72} />
+);
+
+export const RemotionRoot = () => (
+ <Composition
+ id="PerCharacterRise"
+ component={PerCharacterRiseScene}
+ durationInFrames={60}
+ fps={30}
+ width={1280}
+ height={720}
+ />
+);
+```
+
+### With Backdrop
+
+The component renders transparent — supply the background via `Backdrop`. It ships single-theme; edit the copied file to re-theme colors.
+
+Pair with `Backdrop` to place the text inside a full-frame fill with a rounded, shadowed content frame:
+
+```tsx
+import { Composition } from "remotion";
+import { PerCharacterRise } from "@/components/remocn/per-character-rise";
+import { Backdrop } from "@/components/remocn/backdrop";
+
+const PerCharacterRiseScene = () => (
+ <Backdrop fill={{ type: "color", value: "#ffffff" }}>
+ <PerCharacterRise text="One more thing." distance={32} fontSize={72} />
+ </Backdrop>
+);
+
+export const RemotionRoot = () => (
+ <Composition
+ id="PerCharacterRise"
+ component={PerCharacterRiseScene}
+ durationInFrames={60}
+ fps={30}
+ width={1280}
+ height={720}
+ />
+);
+```
+
+## Props
+
+<PropsTable
+ rows={[
+ {
+ name: "text",
+ type: "string",
+ required: true,
+ description: "The text to reveal",
+ },
+ {
+ name: "distance",
+ type: "number",
+ default: "32",
+ description: "Vertical travel in pixels each character rises from. Animates to 0.",
+ },
+ {
+ name: "fontSize",
+ type: "number",
+ default: "72",
+ description: "Font size in pixels",
+ },
+ {
+ name: "fontWeight",
+ type: "number",
+ default: "600",
+ description: "CSS font-weight",
+ },
+ {
+ name: "color",
+ type: "string",
+ default: "\"#171717\"",
+ description: "Text color (any valid CSS color)",
+ },
+ {
+ name: "className",
+ type: "string",
+ description: "Optional className passed to the underlying span",
+ },
+ ]}
+/>
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 91ffaca1..72f67c8b 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -9,6 +9,8 @@ import { AnimatedLineChart } from "@/registry/remocn/animated-line-chart";
import { animatedLineChartConfig } from "@/registry/remocn/animated-line-chart/config";
import { SoftBlurIn } from "@/registry/remocn/soft-blur-in";
import { softBlurInConfig } from "@/registry/remocn/soft-blur-in/config";
+import { PerCharacterRise } from "@/registry/remocn/per-character-rise";
+import { perCharacterRiseConfig } from "@/registry/remocn/per-character-rise/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";
@@ -193,6 +195,7 @@ export interface RegistryEntry {
const registry: Record<string, RegistryEntry> = {
"soft-blur-in": { Component: SoftBlurIn, config: softBlurInConfig },
+ "per-character-rise": { Component: PerCharacterRise, config: perCharacterRiseConfig },
typewriter: { Component: Typewriter, config: typewriterConfig },
"inline-highlight": {
Component: InlineHighlight,
diff --git a/registry/remocn/per-character-rise/config.ts b/registry/remocn/per-character-rise/config.ts
new file mode 100644
index 00000000..5982fbca
--- /dev/null
+++ b/registry/remocn/per-character-rise/config.ts
@@ -0,0 +1,43 @@
+import {
+ type ComponentConfig,
+ FONT_WEIGHT_OPTIONS,
+ FPS,
+ H,
+ W,
+} from "@/lib/customizer-config";
+
+export const perCharacterRiseConfig: ComponentConfig = {
+ componentName: "PerCharacterRise",
+ importPath: "@/components/remocn/per-character-rise",
+ controls: {
+ text: { type: "text", default: "One more thing.", label: "Text" },
+ distance: {
+ type: "number",
+ default: 32,
+ min: 0,
+ max: 120,
+ step: 1,
+ label: "Distance",
+ },
+ fontSize: {
+ type: "number",
+ default: 72,
+ min: 12,
+ max: 160,
+ step: 1,
+ label: "Font size",
+ },
+ color: { type: "color", default: "#171717", label: "Color" },
+ fontWeight: {
+ type: "select",
+ default: "600",
+ options: FONT_WEIGHT_OPTIONS,
+ label: "Font weight",
+ },
+ },
+ durationInFrames: 60,
+ fps: FPS,
+ compositionWidth: W,
+ compositionHeight: H,
+ previewBackdrop: { type: "color", value: "#ffffff" },
+};
diff --git a/registry/remocn/per-character-rise/index.tsx b/registry/remocn/per-character-rise/index.tsx
new file mode 100644
index 00000000..0ca4859f
--- /dev/null
+++ b/registry/remocn/per-character-rise/index.tsx
@@ -0,0 +1,86 @@
+"use client";
+
+import { Easing, interpolate, useCurrentFrame } from "remotion";
+
+export interface PerCharacterRiseProps {
+ text: string;
+ distance?: number;
+ fontSize?: number;
+ color?: string;
+ fontWeight?: number;
+ speed?: number;
+ className?: string;
+}
+
+export function PerCharacterRise({
+ text,
+ distance = 32,
+ fontSize = 72,
+ color = "#171717",
+ fontWeight = 600,
+ speed = 1,
+ className,
+}: PerCharacterRiseProps) {
+ const frame = useCurrentFrame() * speed;
+
+ const chars = Array.from(text);
+ const charDurationFrames = 21;
+ 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.2, 0.8, 0.2, 1);
+ const opacity = interpolate(
+ local,
+ [0, charDurationFrames],
+ [0, 1],
+ { extrapolateLeft: "clamp", extrapolateRight: "clamp", easing },
+ );
+ const y = interpolate(
+ local,
+ [0, charDurationFrames],
+ [distance, 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)`,
+ }}
+ >
+ {char}
+ </span>
+ );
+ })}
+ </span>
+ </div>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 2b7a0cc0..19c4f082 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -19,6 +19,22 @@
}
]
},
+ {
+ "name": "per-character-rise",
+ "type": "registry:component",
+ "title": "Per Character Rise",
+ "description": "Letters slide up from below with no blur — crisp, deliberate, kinetic.",
+ "dependencies": [
+ "remotion"
+ ],
+ "files": [
+ {
+ "path": "per-character-rise/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/per-character-rise.tsx"
+ }
+ ]
+ },
{
"name": "typewriter",
"type": "registry:component",