Skip to content

🎥 Make videos programmatically with React

easier transitions package

Jonny Burgeraa104a6380eb
diff --git a/packages/docs/docs/transitions.mdx b/packages/docs/docs/transitions.mdx
index 2e0bf94aa8..cb1c9c1226 100644
--- a/packages/docs/docs/transitions.mdx
+++ b/packages/docs/docs/transitions.mdx
@@ -5,7 +5,11 @@ title: Transitions
crumb: "Techniques"
---
+# Transitions<AvailableFrom v="4.0.59"/>
+
import { TransitionsDuration } from "../components/TransitionsDuration";
+import { Presentations } from "../components/TableOfContents/transitions/presentations";
+import { Timings } from "../components/TableOfContents/transitions/timings";
To transition between two types of absolutely positioned content, you can use the [`<TransitionSeries>`](/docs/transitions/transitionseries) component.
@@ -68,13 +72,38 @@ During this time, both slides are rendered. This means the total duration of the
<TransitionsDuration />
-## Presentations and timings
+## Presentations
+
+A presentation determines the visual of animation.
+
+<Presentations />
+
+## Timings
+
+A timing determines how long the animation takes and the animation curve.
+
+<Timings />
+
+## Audio transitions
+
+See here how to include [audio effects](/docs/transitions/audio-transitions) in your transitions.
+
+## Getting the duration of a transition
+
+You can get the duration of a transition by calling `getDurationInFrames()` on the timing:
+
+```tsx twoslash title="Assuming a framerate of 30fps"
+import { springTiming } from "@remotion/transitions";
+
+springTiming({ config: { damping: 200 } }).getDurationInFrames({ fps: 30 }); // 23
+```
-A presentation determines the visual of animation.
-[Click here](/docs/transitions/presentations) to see the available presentations and how to create custom ones.
+## Rules
-A timing determines how long the animation takes and the animation curve.
-[Click here](/docs/transitions/timings) to see the available timing presets and how to create custom ones.
+<Step>1</Step> It is forbidden to have a transition that is longer than the duration
+of the previous or next sequence. <br />
+<Step>2</Step> There can be no two transitions next to each other. <br />
+<Step>3</Step> There must be at least one sequence before or after a transition.
## See also
diff --git a/packages/docs/docs/transitions/transitionseries.mdx b/packages/docs/docs/transitions/transitionseries.mdx
index 5b8627ca8b..843278a425 100644
--- a/packages/docs/docs/transitions/transitionseries.mdx
+++ b/packages/docs/docs/transitions/transitionseries.mdx
@@ -5,7 +5,7 @@ sidebar_label: "<TransitionSeries>"
title: "<TransitionSeries>"
---
-_available from v4.0.26_
+_available from v4.0.59_
import { TransitionsDuration } from "../../components/TransitionsDuration";
diff --git a/vercel.json b/vercel.json
index 5cae31d08d..f7dcb8f169 100644
--- a/vercel.json
+++ b/vercel.json
@@ -249,7 +249,7 @@
},
{
"source": "/transitions",
- "destination": "/docs/transitions",
+ "destination": "/docs/transitioning",
"permanent": false
},
{