🎥 Make videos programmatically with React
`docs`: Neutralize spring-first wording in basics, AI generate, and llms
JonnyBurgerbfad639d5d5f
diff --git a/packages/docs/docs/ai/generate.mdx b/packages/docs/docs/ai/generate.mdxindex 7dd14e4b61..7e72924ab1 100644--- a/packages/docs/docs/ai/generate.mdx+++ b/packages/docs/docs/ai/generate.mdx@@ -26,14 +26,14 @@ Generate a single React component that uses Remotion.Rules:- Export the component as a named export called "MyComposition"- Use useCurrentFrame() and useVideoConfig() from "remotion"-- Use spring() for animations+- Animate values with interpolate() or spring() as appropriate- Only output the code, no markdown or explanations`.trim();const {text: code, usage} = await generateText({model: openai('gpt-5.2'),system: systemPrompt,- prompt: 'Create a countdown from 5 to 1 with spring animations',+ prompt: 'Create a countdown from 5 to 1 with smooth motion',});console.log(code); // "import {useCurrentFrame, ...} export const MyComposition ..."@@ -44,7 +44,7 @@ The result includes usage metadata for tracking token consumption.The `text` property contains the generated code as a string. With formatting it looks like this:```tsx-import {useCurrentFrame, useVideoConfig, spring, AbsoluteFill} from 'remotion';+import {useCurrentFrame, useVideoConfig, interpolate, AbsoluteFill} from 'remotion';export const MyComposition: React.FC = () => {const frame = useCurrentFrame();@@ -76,7 +76,7 @@ Generate a React component that uses Remotion. For the code property, ALWAYS dirRules:- The component should be a named export called "MyComposition"- Use useCurrentFrame() and useVideoConfig() from "remotion"-- Use spring() for smooth animations+- Animate with interpolate() (and Easing from "remotion" when needed) or spring() as appropriate- Keep it self-contained with no external dependencies`.trim();diff --git a/packages/docs/docs/animating-properties.mdx b/packages/docs/docs/animating-properties.mdxindex 7bd1bf2253..1cd39aed0f 100644--- a/packages/docs/docs/animating-properties.mdx+++ b/packages/docs/docs/animating-properties.mdx@@ -58,9 +58,9 @@ const opacity = interpolate(frame, [0, 60], [0, 1], {In this example, we map the frames 0 to 60 to their opacity values `(0, 0.0166, 0.033, 0.05 ...`) and use the [`extrapolateRight`](/docs/interpolate#extrapolateright) setting to clamp the output so that it never becomes bigger than 1.-## Using spring animations+## Using `spring()`-Spring animations are a natural animation primitive. By default, they animate from 0 to 1 over time. This time, let's animate the scale of the text.+The [`spring()`](/docs/spring) helper runs a spring simulation from 0 to 1 by default. Below, we use it to animate the scale of the text.```tsx twoslash {7-12, 20}import { spring, useCurrentFrame, useVideoConfig } from "remotion";diff --git a/packages/docs/src/helpers/system-prompt.ts b/packages/docs/src/helpers/system-prompt.tsindex 8111c44ccb..fba8aaa0ff 100644--- a/packages/docs/src/helpers/system-prompt.ts+++ b/packages/docs/src/helpers/system-prompt.ts@@ -314,8 +314,7 @@ export const MyComp: React.FC = () => {};\`\`\`-Remotion includes a "spring()" helper that can animate values over time.-Below is the suggested default usage.+Remotion includes a "spring()" helper for spring-based motion. By default it animates from 0 to 1; the duration is not fixed in advance.\`\`\`tsximport {spring} from 'remotion';diff --git a/packages/docs/static/llms.txt b/packages/docs/static/llms.txtindex 2e77a68f81..e84adb2858 100644--- a/packages/docs/static/llms.txt+++ b/packages/docs/static/llms.txt@@ -311,8 +311,7 @@ export const MyComp: React.FC = () => {};```-Remotion includes a "spring()" helper that can animate values over time.-Below is the suggested default usage.+Remotion includes a "spring()" helper for spring-based motion. By default it animates from 0 to 1; the duration is not fixed in advance.```tsximport {spring} from 'remotion';