Skip to content

🎥 Make videos programmatically with React

Minor prompt change + loader on button

ASchwad6abc1b5910b0
diff --git a/packages/template-code-generation/src/data/examplePrompts.ts b/packages/template-code-generation/src/data/examplePrompts.ts
index 6a5c387b3e..f624966197 100644
--- a/packages/template-code-generation/src/data/examplePrompts.ts
+++ b/packages/template-code-generation/src/data/examplePrompts.ts
@@ -3,7 +3,7 @@ export const examplePrompts = [
id: "text-typewriter",
headline: "Typewriter text",
icon: "Type",
- prompt: `Generate the text "Hello world" with world in yellow highlighting. Do not render any background. That words should be shown next to each other and rendered in black
+ prompt: `Generate the text "Hello world" with world in yellow highlighting. Black text, white background. That words should be shown next to each other in the center of the screen.
Animation: Let the words fade in from left to right and then highlight "world" yellow. Mimic a typewriter effect for the text appearance with a blinking cursor at the end of the text.`,
color: "#fdba74",
@@ -57,7 +57,7 @@ Show all metrics at the same time, use this color #fde047. Focus on no overlaps
prompt: `Create a DVD-Rom Style animation of this image https://i.pinimg.com/600x/ac/82/57/ac8257e1cfc4e63f5c63f3d4869eb7c4.jpg
The graphic moves smoothly across the screen in a straight line, bouncing off the edges of the screen whenever it hits a border. Each time it hits a corner or side, it changes direction, creating a continuous floating, ricocheting motion. The speed is steady, the movement is linear, and the object keeps rotating around the screen endlessly, just like the classic DVD logo screensaver.
-Change the color on every bounce, no rotation, Make the animation speed very fast.`,
+Change the color on every bounce, no rotation, Make the animation speed fast.`,
color: "#f9a8d4",
},
] as const;
diff --git a/packages/template-code-generation/src/templates/index.ts b/packages/template-code-generation/src/templates/index.ts
index be3582b38e..1466de56a5 100644
--- a/packages/template-code-generation/src/templates/index.ts
+++ b/packages/template-code-generation/src/templates/index.ts
@@ -20,7 +20,7 @@ export const examples: RemotionExample[] = [
const frame = Remotion.useCurrentFrame();
const { fps } = Remotion.useVideoConfig();
- const words = ["Hello", "World", "Remotion", "React"];
+ const words = ["One sec please :)", "Getting started", "with your", "Code Generation"];
const wordDuration = 60; // frames per word
const currentWordIndex = Math.floor(frame / wordDuration) % words.length;
const frameInWord = frame % wordDuration;