Skip to content

🎥 Make videos programmatically with React

Update flickering.mdx

Jonny Burgere68878be11e0
diff --git a/packages/docs/docs/flickering.mdx b/packages/docs/docs/flickering.mdx
index 0869c40af7..77e1339460 100644
--- a/packages/docs/docs/flickering.mdx
+++ b/packages/docs/docs/flickering.mdx
@@ -35,12 +35,9 @@ Think of your component as a function that transforms a frame number into an ima
Does your component satisfy the following criteria?
<Step>1</Step> A component should always display the same visual when called multiple
-times.
-<br />
-<Step>2</Step> A component should not rely on frames being rendered in order.
-<br />
-<Step>3</Step> A component should not animate when the video is paused.
-<br />
+times.<br />
+<Step>2</Step> A component should not rely on frames being rendered in order.<br />
+<Step>3</Step> A component should not animate when the video is paused.<br />
<Step>4</Step> A component should not rely on randomness - Exception: <a href="/docs/random"><code>random()</code></a>
### Bypass multithreading
@@ -61,15 +58,11 @@ Otherwise, it will take a screenshot of a loading state.
, <a><code>&lt;OffthreadVideo&gt;</code></a>
, <a><code>&lt;Audio&gt;</code></a>
, <a><code>&lt;Iframe&gt;</code></a> and <a><code>&lt;Gif&gt;</code></a> as they wait for the assets to be loaded. <br />
-
<Step>2</Step> When loading data, use the <a href="/docs/delay-render">
<code>delayRender()</code>
-</a> function.
-<br />
-<Step>3</Step> Ensure you correctly wait <a href="/docs/fonts">for fonts to load</a>
-.<br />
-<Step>4</Step> Only call <a href="/docs/layout-utils/fit-text"><code>fitText()</code></a>, <a href="/docs/layout-utils/fill-text-box"><code>fillTextBox()</code></a> and <a href="/docs/layout-utils/measure-text"><code>measureText()</code></a> once fonts are loaded.
-<br />
+</a> function.<br />
+<Step>3</Step> Ensure you correctly wait <a href="/docs/fonts">for fonts to load</a>.<br />
+<Step>4</Step> Only call <a href="/docs/layout-utils/fit-text"><code>fitText()</code></a>, <a href="/docs/layout-utils/fill-text-box"><code>fillTextBox()</code></a> and <a href="/docs/layout-utils/measure-text"><code>measureText()</code></a> once fonts are loaded.<br />
<Step>5</Step> Avoid using the <a href="/docs/troubleshooting/background-image"><code>background-image</code> and <code>mask-image</code> CSS properties</a>.
## Flickering `<Video>` tag