🎥 Make videos programmatically with React
makeTransform
Jonny Burger675c34da8318
diff --git a/packages/docs/components/demos/Translate.tsx b/packages/docs/components/demos/Translate.tsxindex 6679a2b3cd..5432a94a62 100644--- a/packages/docs/components/demos/Translate.tsx+++ b/packages/docs/components/demos/Translate.tsx@@ -59,6 +59,7 @@ const Base: React.FC<{marginLeft: -50,marginTop: -50,fontWeight: "bold",+ color: "var(--ifm-color-primary)",}}>Adiff --git a/packages/docs/docs/transforms.md b/packages/docs/docs/transforms.mdindex 581189252d..b00e24af86 100644--- a/packages/docs/docs/transforms.md+++ b/packages/docs/docs/transforms.md@@ -154,6 +154,20 @@ If both transformations use the `transform` property, specify multiple transformNote that the order matters. The transformations are applied in the order they are specified.+## Using the `makeTransform()` helper++Install [@remotion/animation-utils](/docs/animation-utils/) to [get a type-safe helper function](/docs/animation-utils/make-transform) to generate `transform` strings.++```tsx twoslash+import { makeTransform, rotate, translate } from "@remotion/animation-utils";++const transform = translate(50, 50);+// => "translate(50px, 50px)"++const multiTransform = makeTransform([rotate(45), translate(50, 50)]);+// => "rotate(45deg) translate(50px, 50px)"+```+## More ways to transform objectsThese are just some of the basic transformations. Here are some more transformations that are possible: