Skip to content

🎥 Make videos programmatically with React

Update layers.mdx

Jonny Burger3822b2ce98eb
diff --git a/packages/docs/docs/layers.mdx b/packages/docs/docs/layers.mdx
index 47e705bee2..ee7b5032fb 100644
--- a/packages/docs/docs/layers.mdx
+++ b/packages/docs/docs/layers.mdx
@@ -41,9 +41,9 @@ import { AbsoluteFill, Img, staticFile, Sequence } from "remotion";
export const MyComp: React.FC = () => {
return (
<AbsoluteFill>
- <AbsoluteFill>
+ <Sequence>
<Img src={staticFile("bg.png")} />
- </AbsoluteFill>
+ </Sequence>
<Sequence from={60} durationInFrames={40}>
<h1>This text appears after 60 frames!</h1>
</Sequence>
@@ -53,7 +53,7 @@ export const MyComp: React.FC = () => {
```
The lower the absolutely positioned element is in the tree, the higher it will be in the layer stack.
-If you are aware of this, you can use this to your advantage and avoid using `z-index` in most cases.
+If you are aware of this behavior, you can use it to your advantage and avoid using `z-index` in most cases.
## See also