🎥 Make videos programmatically with React
Update index.tsx
Jonny Burger77ef2017c2e3
diff --git a/packages/example/src/Premount/index.tsx b/packages/example/src/Premount/index.tsxindex 0626a86441..5bafa77f04 100644--- a/packages/example/src/Premount/index.tsx+++ b/packages/example/src/Premount/index.tsx@@ -3,6 +3,7 @@ import {AbsoluteFill,Freeze,Sequence,+ Series,staticFile,useCurrentFrame,Video,@@ -35,9 +36,11 @@ const ShouldNotUnmount: React.FC = () => {export const PremountedExample: React.FC = () => {return (<AbsoluteFill>- <Premount premountFor={10}>- <ShouldNotUnmount />- </Premount>+ <Series.Sequence durationInFrames={20} offset={-10}>+ <Premount premountFor={10}>+ <ShouldNotUnmount />+ </Premount>+ </Series.Sequence></AbsoluteFill>);};