Skip to content

🎥 Make videos programmatically with React

Update Sequence.tsx

Jonny Burgerac8e187937f3
diff --git a/packages/core/src/Sequence.tsx b/packages/core/src/Sequence.tsx
index 46c2d91a7f..4ceb30ae0e 100644
--- a/packages/core/src/Sequence.tsx
+++ b/packages/core/src/Sequence.tsx
@@ -265,7 +265,10 @@ const PremountedSequenceRefForwardingFunction: React.ForwardRefRenderFunction<
name,
...otherProps
} = props;
- const active = frame < from && !getRemotionEnvironment().isRendering;
+ const active =
+ frame < from &&
+ frame > from - premountFor &&
+ !getRemotionEnvironment().isRendering;
const style = useMemo(() => {
return {