Skip to content

🎥 Make videos programmatically with React

docuementation about rich timeline

Jonny Burger9c66798dbec5
diff --git a/packages/cli/src/editor/components/RichTimelineToggle.tsx b/packages/cli/src/editor/components/RichTimelineToggle.tsx
index 60bd3e82c1..206f8ab953 100644
--- a/packages/cli/src/editor/components/RichTimelineToggle.tsx
+++ b/packages/cli/src/editor/components/RichTimelineToggle.tsx
@@ -7,7 +7,7 @@ import {
import {ControlButton} from './ControlButton';
const tooltip =
- 'Enable rich timeline. Go to remotion.dev/docs/rich-timeline for more information.';
+ 'Enable rich timeline. Go to remotion.dev/docs/timeline for more information.';
export const RichTimelineToggle: React.FC = () => {
const {richTimeline, setRichTimeline} = useContext(RichTimelineContext);
diff --git a/packages/docs/docs/timeline.md b/packages/docs/docs/timeline.md
index 717ee774dc..ead95a6c00 100644
--- a/packages/docs/docs/timeline.md
+++ b/packages/docs/docs/timeline.md
@@ -7,4 +7,30 @@ id: timeline
This function is part of Remotion 2.0 which is not yet released. The information on this page might not yet accurately reflect the current state of Remotions API.
:::warning
-TODO
+At the bottom of the Remotion preview player, you will see a timeline.
+Remotions timeline has two modes: **Simple timeline** and **Rich timeline** (_default_).
+
+<img src="/img/timeline.png"></img>
+
+You may switch between the two modes by clicking the icon with the three lines:
+
+<img src="/img/timeline-toggle.png"></img>
+
+## Simple timeline
+
+The **simple timeline** will visualize the content that is rendered by your composition at the current time. This is a simple and efficient way of visualizing your content, as it will only render what you anyway see in the top panel of the editor. However, it is limited: If you place your cursor outside the time range of a sequence, Remotion cannot gather information about that sequence because it simply is not rendered at this time. This means that while the playback head is moving, the timeline may change.
+
+## Rich timeline
+
+The **rich timeline** will render additional frames to gather enough information to visualize a full timeline.
+Sequences which are normally not rendered because the playback head is not within the time range of the sequence, will appear because Remotion is doing an additional render at a time where the sequence is visible.
+
+These additional renders will appear as thumbnails in the timeline. Therefore, these thumbnails are only available in rich timeline mode.
+
+## Which mode should I use?
+
+Generally, the rich timeline mode will provide you with a more accurate timeline. Since your timeline gets rendered more than once at a time, you must ensure that your timeline is free of side effects and only relies on [`useCurrentFrame`](/docs/use-current-frame) for animation.
+
+More renders also mean slower rendering. If you are suffering from slow playback and timeline scrubbing performance, consider disabling the rich timeline mode.
+
+If you are opting out of rich timeline mode, please leave feedback by [opening an issue on our Github repo](https://github.com/JonnyBurger/remotion/issues/new).
diff --git a/packages/docs/static/img/timeline-toggle.png b/packages/docs/static/img/timeline-toggle.png
new file mode 100644
index 0000000000..2c22ac94ba
Binary files /dev/null and b/packages/docs/static/img/timeline-toggle.png differ
diff --git a/packages/docs/static/img/timeline.png b/packages/docs/static/img/timeline.png
new file mode 100644
index 0000000000..772b3d5fa3
Binary files /dev/null and b/packages/docs/static/img/timeline.png differ