Skip to content

🎥 Make videos programmatically with React

Clean up examples

ASchwada03c06581040
diff --git a/packages/template-prompt-to-motion-graphics/src/templates/animated-shapes.ts b/packages/template-prompt-to-motion-graphics/src/templates/animated-shapes.ts
index cf53f9b6f7..950c60cf12 100644
--- a/packages/template-prompt-to-motion-graphics/src/templates/animated-shapes.ts
+++ b/packages/template-prompt-to-motion-graphics/src/templates/animated-shapes.ts
@@ -5,7 +5,7 @@ import { Circle, Triangle, Rect, Star } from "@remotion/shapes";
export const MyAnimation = () => {
const frame = useCurrentFrame();
- const { fps, width, height } = useVideoConfig();
+ const { fpst } = useVideoConfig();
const shapes = [
{ type: "circle", color: "#6366f1", delay: 0 },
diff --git a/packages/template-prompt-to-motion-graphics/src/templates/chat-messages.ts b/packages/template-prompt-to-motion-graphics/src/templates/chat-messages.ts
index fee14679d3..796344a42d 100644
--- a/packages/template-prompt-to-motion-graphics/src/templates/chat-messages.ts
+++ b/packages/template-prompt-to-motion-graphics/src/templates/chat-messages.ts
@@ -13,7 +13,6 @@ export const MyAnimation = () => {
{ text: "Check this out!", isMe: true, delay: 135 },
];
- const visibleMessages = messages.filter((msg) => frame >= msg.delay);
const messageHeight = 100;
return (
diff --git a/packages/template-prompt-to-motion-graphics/src/templates/counter-animation.ts b/packages/template-prompt-to-motion-graphics/src/templates/counter-animation.ts
index 77b217ff41..5a7009e6f1 100644
--- a/packages/template-prompt-to-motion-graphics/src/templates/counter-animation.ts
+++ b/packages/template-prompt-to-motion-graphics/src/templates/counter-animation.ts
@@ -4,7 +4,7 @@ export const counterAnimationCode = `import { AbsoluteFill, useCurrentFrame, use
export const MyAnimation = () => {
const frame = useCurrentFrame();
- const { fps, durationInFrames } = useVideoConfig();
+ const { durationInFrames } = useVideoConfig();
const metrics = [
{ label: "Users", target: 10000, color: "#4f46e5" },
diff --git a/packages/template-prompt-to-motion-graphics/src/templates/morphing-hexagons.ts b/packages/template-prompt-to-motion-graphics/src/templates/morphing-hexagons.ts
index 3cc27e3604..c647056729 100644
--- a/packages/template-prompt-to-motion-graphics/src/templates/morphing-hexagons.ts
+++ b/packages/template-prompt-to-motion-graphics/src/templates/morphing-hexagons.ts
@@ -4,7 +4,7 @@ export const morphingHexagonsCode = `import { AbsoluteFill, useCurrentFrame, use
export const MyAnimation = () => {
const frame = useCurrentFrame();
- const { fps, width, height } = useVideoConfig();
+ const { fps } = useVideoConfig();
const hexSize = 50;
const cols = 7;
diff --git a/packages/template-prompt-to-motion-graphics/src/templates/text-rotation.ts b/packages/template-prompt-to-motion-graphics/src/templates/text-rotation.ts
index 5bd56676ca..926f624eae 100644
--- a/packages/template-prompt-to-motion-graphics/src/templates/text-rotation.ts
+++ b/packages/template-prompt-to-motion-graphics/src/templates/text-rotation.ts
@@ -1,6 +1,6 @@
import { RemotionExample } from "./index";
-export const textRotationCode = `import { useCurrentFrame, useVideoConfig, AbsoluteFill, interpolate } from "remotion";
+export const textRotationCode = `import { useCurrentFrame, AbsoluteFill, interpolate } from "remotion";
export const MyAnimation = () => {
const frame = useCurrentFrame();