Skip to content

🎥 Make videos programmatically with React

demos

Jonny Burgera678381f29dd
diff --git a/packages/docs/components/TableOfContents/transitions.tsx b/packages/docs/components/TableOfContents/transitions.tsx
index c1ced927ea..b4bcf2c002 100644
--- a/packages/docs/components/TableOfContents/transitions.tsx
+++ b/packages/docs/components/TableOfContents/transitions.tsx
@@ -32,6 +32,10 @@ export const TableOfContents: React.FC = () => {
<strong>{"Overview"}</strong>
<div>List of available timings</div>
</TOCItem>
+ <TOCItem link="/docs/transitions/timings/custom">
+ <strong>Custom timings</strong>
+ <div>Implement your own timing</div>
+ </TOCItem>
<TOCItem link="/docs/transitions/timings/springtiming">
<strong>
<code>{"springTiming()"}</code>
@@ -46,18 +50,18 @@ export const TableOfContents: React.FC = () => {
</strong>
<div>Transition linearly with optional Easing</div>
</TOCItem>
- <TOCItem link="/docs/transitions/timings/custom">
- <strong>Custom timings</strong>
- <div>Implement your own timing</div>
- </TOCItem>
</Grid>
<h3>Presentations</h3>
- Hover over an effect to see the preview.
+ <p>Hover over an effect to see the preview.</p>
<Grid>
<TOCItem link="/docs/transitions/presentations">
<strong>{"Overview"}</strong>
<div>List of available presentations</div>
</TOCItem>
+ <TOCItem link="/docs/transitions/presentations/custom">
+ <strong>Custom presentations</strong>
+ <div>Implement your own effect</div>
+ </TOCItem>
<TOCItem link="/docs/transitions/presentations/fade">
<div style={row}>
<Preview effect={fade()} />
@@ -91,10 +95,6 @@ export const TableOfContents: React.FC = () => {
</div>
</div>
</TOCItem>
- <TOCItem link="/docs/transitions/presentations/custom">
- <strong>Custom presentations</strong>
- <div>Implement your own effect</div>
- </TOCItem>
</Grid>
</div>
);
diff --git a/packages/docs/components/transitions/previews.tsx b/packages/docs/components/transitions/previews.tsx
index 62358220c9..a8a6c98f86 100644
--- a/packages/docs/components/transitions/previews.tsx
+++ b/packages/docs/components/transitions/previews.tsx
@@ -17,14 +17,16 @@ export const Preview: React.FC<{
}
const callback = () => {
- current.seekTo(0);
+ current?.seekTo(0);
current?.play();
};
- current.getContainerNode().addEventListener("pointerenter", callback);
+ current?.getContainerNode()?.addEventListener("pointerenter", callback);
return () => {
- current.getContainerNode().removeEventListener("pointerenter", callback);
+ current
+ ?.getContainerNode()
+ ?.removeEventListener("pointerenter", callback);
};
}, []);
diff --git a/packages/docs/docusaurus.config.js b/packages/docs/docusaurus.config.js
index 023f69ecb3..ed0d4002a0 100644
--- a/packages/docs/docusaurus.config.js
+++ b/packages/docs/docusaurus.config.js
@@ -160,14 +160,10 @@ const config = (mode) => ({
{
label: "Discord",
href: "https://remotion.dev/discord",
- "data-splitbee-event": "External Link",
- "data-splitbee-event-target": "Discord",
},
{
label: "X",
href: "https://x.com/remotion",
- "data-splitbee-event": "External Link",
- "data-splitbee-event-target": "X",
},
{
label: "YouTube",
@@ -176,20 +172,14 @@ const config = (mode) => ({
{
label: "LinkedIn",
href: "https://www.linkedin.com/company/remotion-dev/",
- "data-splitbee-event": "External Link",
- "data-splitbee-event-target": "LinkedIn",
},
{
label: "Instagram",
href: "https://instagram.com/remotion",
- "data-splitbee-event": "External Link",
- "data-splitbee-event-target": "Instagram",
},
{
label: "TikTok",
href: "https://www.tiktok.com/@remotion",
- "data-splitbee-event": "External Link",
- "data-splitbee-event-target": "TikTok",
},
],
},