Skip to content

🎥 Make videos programmatically with React

Wrap motion blur docs sample for narrow displays

JonnyBurger92925822c38b
diff --git a/packages/docs/docs/motion-blur/html-in-canvas-motion-blur.mdx b/packages/docs/docs/motion-blur/html-in-canvas-motion-blur.mdx
index a39e057cc7..22702007a2 100644
--- a/packages/docs/docs/motion-blur/html-in-canvas-motion-blur.mdx
+++ b/packages/docs/docs/motion-blur/html-in-canvas-motion-blur.mdx
@@ -15,7 +15,9 @@ crumb: '@remotion/motion-blur'
It requires [HTML-in-canvas](/docs/html-in-canvas#enabling-the-flag-in-chrome) to be enabled during preview. Rendering needs no configuration.
```tsx twoslash title="MyComposition.tsx"
-import {HtmlInCanvasMotionBlur} from '@remotion/motion-blur';
+import {
+ HtmlInCanvasMotionBlur,
+} from '@remotion/motion-blur';
import {useCurrentFrame, useVideoConfig} from 'remotion';
const MovingBox = () => {
@@ -39,7 +41,12 @@ export const MyComposition = () => {
const {width, height} = useVideoConfig();
return (
- <HtmlInCanvasMotionBlur width={width} height={height} samples={8} shutterAngle={180}>
+ <HtmlInCanvasMotionBlur
+ width={width}
+ height={height}
+ samples={8}
+ shutterAngle={180}
+ >
<MovingBox />
</HtmlInCanvasMotionBlur>
);