🎥 Make videos programmatically with React
Elements: Remove redundant full-canvas wrappers
Jonny Burger406ea638c958
diff --git a/packages/docs/elements-template/element.tsx b/packages/docs/elements-template/element.tsxindex d8722bce3d..9bb9a65dc3 100644--- a/packages/docs/elements-template/element.tsx+++ b/packages/docs/elements-template/element.tsx@@ -1,15 +1,10 @@import React from 'react';-import {- AbsoluteFill,- Interactive,- type InteractiveTransformProps,-} from 'remotion';+import {AbsoluteFill, Interactive} from 'remotion';-const ElementComponentInner: React.FC<InteractiveTransformProps> = ({- style,-}) => {+const ElementComponentInner: React.FC = () => {return (<AbsoluteFill+ showInTimeline={false}style={{alignItems: 'center',backgroundColor: '#111827',@@ -19,7 +14,6 @@ const ElementComponentInner: React.FC<InteractiveTransformProps> = ({fontSize: 96,fontWeight: 700,justifyContent: 'center',- ...style,}}>Element@@ -32,4 +26,5 @@ export const ElementComponent = Interactive.withSchema({componentName: '<ElementComponent>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/backgrounds/liquid-contours/liquid-contours.tsx b/packages/docs/elements/backgrounds/liquid-contours/liquid-contours.tsxindex 1325b48d77..2bbab350cf 100644--- a/packages/docs/elements/backgrounds/liquid-contours/liquid-contours.tsx+++ b/packages/docs/elements/backgrounds/liquid-contours/liquid-contours.tsx@@ -1,34 +1,30 @@import {liquidContours} from '@remotion/effects/liquid-contours';import React from 'react';import {- AbsoluteFill,Interactive,interpolate,Solid,useCurrentFrame,useVideoConfig,- type InteractiveTransformProps,} from 'remotion';-const LiquidContoursInner: React.FC<InteractiveTransformProps> = ({style}) => {+const LiquidContoursInner: React.FC = () => {const frame = useCurrentFrame();const {durationInFrames, height, width} = useVideoConfig();return (- <AbsoluteFill style={style} showInTimeline={false}>- <Solid- color="#dff4ff"- width={width}- height={height}- effects={[- liquidContours({- firstColor: '#dff4ff',- secondColor: '#7cc6ff',- phase: interpolate(frame, [0, durationInFrames], [3.23, 4.23]),- }),- ]}- />- </AbsoluteFill>+ <Solid+ color="#dff4ff"+ width={width}+ height={height}+ effects={[+ liquidContours({+ firstColor: '#dff4ff',+ secondColor: '#7cc6ff',+ phase: interpolate(frame, [0, durationInFrames], [3.23, 4.23]),+ }),+ ]}+ />);};@@ -37,4 +33,5 @@ export const LiquidContours = Interactive.withSchema({componentName: '<LiquidContours>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/backgrounds/moving-waves/moving-waves.tsx b/packages/docs/elements/backgrounds/moving-waves/moving-waves.tsxindex 3342a668b4..95553f3225 100644--- a/packages/docs/elements/backgrounds/moving-waves/moving-waves.tsx+++ b/packages/docs/elements/backgrounds/moving-waves/moving-waves.tsx@@ -1,39 +1,30 @@import {waves} from '@remotion/effects/waves';import React from 'react';-import {- AbsoluteFill,- Interactive,- Solid,- useCurrentFrame,- useVideoConfig,- type InteractiveTransformProps,-} from 'remotion';+import {Interactive, Solid, useCurrentFrame, useVideoConfig} from 'remotion';-const MovingWavesInner: React.FC<InteractiveTransformProps> = ({style}) => {+const MovingWavesInner: React.FC = () => {const frame = useCurrentFrame();const {durationInFrames, height, width} = useVideoConfig();return (- <AbsoluteFill style={style} showInTimeline={false}>- <Solid- color="#dff4ff"- width={width}- height={height}- effects={[- waves({- colors: ['#dff4ff', '#7cc6ff'],- direction: 'horizontal',- thickness: 56,- gap: 0,- angle: 0,- offset: (frame / durationInFrames) * 448,- amplitude: 24,- wavelength: 160,- phase: 0,- }),- ]}- />- </AbsoluteFill>+ <Solid+ color="#dff4ff"+ width={width}+ height={height}+ effects={[+ waves({+ colors: ['#dff4ff', '#7cc6ff'],+ direction: 'horizontal',+ thickness: 56,+ gap: 0,+ angle: 0,+ offset: (frame / durationInFrames) * 448,+ amplitude: 24,+ wavelength: 160,+ phase: 0,+ }),+ ]}+ />);};@@ -42,4 +33,5 @@ export const MovingWaves = Interactive.withSchema({componentName: '<MovingWaves>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/backgrounds/moving-zigzags/moving-zigzags.tsx b/packages/docs/elements/backgrounds/moving-zigzags/moving-zigzags.tsxindex c3a2770201..5193211627 100644--- a/packages/docs/elements/backgrounds/moving-zigzags/moving-zigzags.tsx+++ b/packages/docs/elements/backgrounds/moving-zigzags/moving-zigzags.tsx@@ -1,38 +1,29 @@import {zigzag} from '@remotion/effects/zigzag';import React from 'react';-import {- AbsoluteFill,- Interactive,- Solid,- useCurrentFrame,- useVideoConfig,- type InteractiveTransformProps,-} from 'remotion';+import {Interactive, Solid, useCurrentFrame, useVideoConfig} from 'remotion';-const MovingZigzagsInner: React.FC<InteractiveTransformProps> = ({style}) => {+const MovingZigzagsInner: React.FC = () => {const frame = useCurrentFrame();const {durationInFrames, height, width} = useVideoConfig();return (- <AbsoluteFill style={style} showInTimeline={false}>- <Solid- color="#dff4ff"- width={width}- height={height}- effects={[- zigzag({- colors: ['#dff4ff', '#7cc6ff'],- direction: 'horizontal',- thickness: 40,- gap: 0,- angle: 0,- offset: (frame / durationInFrames) * 480,- amplitude: 40,- wavelength: 160,- }),- ]}- />- </AbsoluteFill>+ <Solid+ color="#dff4ff"+ width={width}+ height={height}+ effects={[+ zigzag({+ colors: ['#dff4ff', '#7cc6ff'],+ direction: 'horizontal',+ thickness: 40,+ gap: 0,+ angle: 0,+ offset: (frame / durationInFrames) * 480,+ amplitude: 40,+ wavelength: 160,+ }),+ ]}+ />);};@@ -41,4 +32,5 @@ export const MovingZigzags = Interactive.withSchema({componentName: '<MovingZigzags>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/backgrounds/notebook-paper/notebook-paper.tsx b/packages/docs/elements/backgrounds/notebook-paper/notebook-paper.tsxindex be3f2aa70c..3124886e5e 100644--- a/packages/docs/elements/backgrounds/notebook-paper/notebook-paper.tsx+++ b/packages/docs/elements/backgrounds/notebook-paper/notebook-paper.tsx@@ -1,45 +1,37 @@import {gridlines} from '@remotion/effects/gridlines';import {paper} from '@remotion/effects/paper';import React from 'react';-import {- AbsoluteFill,- Interactive,- Solid,- useVideoConfig,- type InteractiveTransformProps,-} from 'remotion';+import {Interactive, Solid, useVideoConfig} from 'remotion';-const NotebookPaperInner: React.FC<InteractiveTransformProps> = ({style}) => {+const NotebookPaperInner: React.FC = () => {const {height, width} = useVideoConfig();return (- <AbsoluteFill style={style} showInTimeline={false}>- <Solid- color={'#ffffff'}- width={width}- height={height}- effects={[- paper({- amount: 0.38,- colorFront: 'white',- colorBack: 'white',- contrast: 0.18,- roughness: 0.18,- fiber: 0.28,- crumples: 0.1,- folds: 0.12,- seed: 24,- scale: 0.8,- drops: 0,- }),- gridlines({- gridSize: 54,- lineWidth: 3.4,- lineColor: 'rgba(76, 101, 128, 0.16)',- }),- ]}- />- </AbsoluteFill>+ <Solid+ color={'#ffffff'}+ width={width}+ height={height}+ effects={[+ paper({+ amount: 0.38,+ colorFront: 'white',+ colorBack: 'white',+ contrast: 0.18,+ roughness: 0.18,+ fiber: 0.28,+ crumples: 0.1,+ folds: 0.12,+ seed: 24,+ scale: 0.8,+ drops: 0,+ }),+ gridlines({+ gridSize: 54,+ lineWidth: 3.4,+ lineColor: 'rgba(76, 101, 128, 0.16)',+ }),+ ]}+ />);};@@ -48,4 +40,5 @@ export const NotebookPaper = Interactive.withSchema({componentName: '<NotebookPaper>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/backgrounds/paper-texture/paper-texture.tsx b/packages/docs/elements/backgrounds/paper-texture/paper-texture.tsxindex 58fd1bf570..a0359c9406 100644--- a/packages/docs/elements/backgrounds/paper-texture/paper-texture.tsx+++ b/packages/docs/elements/backgrounds/paper-texture/paper-texture.tsx@@ -1,38 +1,34 @@import {paper} from '@remotion/effects/paper';import React from 'react';import {- AbsoluteFill,Interactive,interpolate,Solid,useCurrentFrame,useVideoConfig,- type InteractiveTransformProps,} from 'remotion';-const PaperTextureInner: React.FC<InteractiveTransformProps> = ({style}) => {+const PaperTextureInner: React.FC = () => {const frame = useCurrentFrame();const {durationInFrames, height, width} = useVideoConfig();return (- <AbsoluteFill style={style} showInTimeline={false}>- <Solid- color="white"- width={width}- height={height}- effects={[- paper({- colorFront: 'white',- colorBack: 'white',- seed: interpolate(frame, [0, durationInFrames], [0, 1000], {- extrapolateLeft: 'clamp',- extrapolateRight: 'clamp',- posterize: 30,- }),+ <Solid+ color="white"+ width={width}+ height={height}+ effects={[+ paper({+ colorFront: 'white',+ colorBack: 'white',+ seed: interpolate(frame, [0, durationInFrames], [0, 1000], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ posterize: 30,}),- ]}- />- </AbsoluteFill>+ }),+ ]}+ />);};@@ -41,4 +37,5 @@ export const PaperTexture = Interactive.withSchema({componentName: '<PaperTexture>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/backgrounds/rotating-starburst/rotating-starburst.tsx b/packages/docs/elements/backgrounds/rotating-starburst/rotating-starburst.tsxindex 37dcb24972..7518c8412c 100644--- a/packages/docs/elements/backgrounds/rotating-starburst/rotating-starburst.tsx+++ b/packages/docs/elements/backgrounds/rotating-starburst/rotating-starburst.tsx@@ -1,37 +1,31 @@import {starburst} from '@remotion/effects/starburst';import React from 'react';import {- AbsoluteFill,Interactive,interpolate,Solid,useCurrentFrame,useVideoConfig,- type InteractiveTransformProps,} from 'remotion';-const RotatingStarburstInner: React.FC<InteractiveTransformProps> = ({- style,-}) => {+const RotatingStarburstInner: React.FC = () => {const frame = useCurrentFrame();const {height, width} = useVideoConfig();return (- <AbsoluteFill style={style} showInTimeline={false}>- <Solid- color="#dff4ff"- width={width}- height={height}- effects={[- starburst({- rays: 28,- colors: ['#dff4ff', '#7cc6ff'],- rotation: interpolate(frame, [0, 2000], [0, 360]),- origin: [0.5, 0.5],- }),- ]}- />- </AbsoluteFill>+ <Solid+ color="#dff4ff"+ width={width}+ height={height}+ effects={[+ starburst({+ rays: 28,+ colors: ['#dff4ff', '#7cc6ff'],+ rotation: interpolate(frame, [0, 2000], [0, 360]),+ origin: [0.5, 0.5],+ }),+ ]}+ />);};@@ -40,4 +34,5 @@ export const RotatingStarburst = Interactive.withSchema({componentName: '<RotatingStarburst>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/commerce/product-collection/product-collection.tsx b/packages/docs/elements/commerce/product-collection/product-collection.tsxindex 5c85c39e3f..690caa9a18 100644--- a/packages/docs/elements/commerce/product-collection/product-collection.tsx+++ b/packages/docs/elements/commerce/product-collection/product-collection.tsx@@ -1,14 +1,12 @@import {loadFont} from '@remotion/google-fonts/Inter';import React from 'react';import {- AbsoluteFill,Easing,Img,Interactive,interpolate,useCurrentFrame,useVideoConfig,- type InteractiveTransformProps,} from 'remotion';loadFont('normal', {@@ -152,68 +150,64 @@ const ProductCard: React.FC<ProductCardProps> = ({count, index, label}) => {);};-const ProductCollectionInner: React.FC<InteractiveTransformProps> = ({- style,-}) => {+const ProductCollectionInner: React.FC = () => {const frame = useCurrentFrame();const {durationInFrames} = useVideoConfig();return (- <AbsoluteFill style={style} showInTimeline={false}>- <Interactive.Div- name="Container"- style={{- WebkitFontSmoothing: 'antialiased',- boxSizing: 'border-box',- color: '#1d1d19',- fontFamily: 'Inter',- height: 660,- isolation: 'isolate',- left: 60,- opacity: interpolate(- frame,- [0, 10, durationInFrames - 8, durationInFrames - 1],- [0, 1, 1, 0],- {- easing: Easing.bezier(0.16, 1, 0.3, 1),- extrapolateLeft: 'clamp',- extrapolateRight: 'clamp',- },- ),- overflow: 'hidden',- position: 'absolute',- scale: interpolate(- frame,- [0, 16, durationInFrames - 8, durationInFrames - 1],- [0.97, 1, 1, 0.98],- {- easing: Easing.bezier(0.16, 1, 0.3, 1),- extrapolateLeft: 'clamp',- extrapolateRight: 'clamp',- output: 'perceptual-scale',- },- ),- top: 180,- transform: 'perspective(100px)',- translate: interpolate(- frame,- [0, 16, durationInFrames - 8, durationInFrames - 1],- ['0px 30px', '0px 0px', '0px 0px', '0px -20px'],- {- easing: Easing.bezier(0.16, 1, 0.3, 1),- extrapolateLeft: 'clamp',- extrapolateRight: 'clamp',- },- ),- width: 900,- willChange: 'transform, opacity',- }}- >- <ProductCard count={3} index={0} label="A" />- <ProductCard count={3} index={1} label="B" />- <ProductCard count={3} index={2} label="C" />- </Interactive.Div>- </AbsoluteFill>+ <Interactive.Div+ name="Container"+ style={{+ WebkitFontSmoothing: 'antialiased',+ boxSizing: 'border-box',+ color: '#1d1d19',+ fontFamily: 'Inter',+ height: 660,+ isolation: 'isolate',+ left: 60,+ opacity: interpolate(+ frame,+ [0, 10, durationInFrames - 8, durationInFrames - 1],+ [0, 1, 1, 0],+ {+ easing: Easing.bezier(0.16, 1, 0.3, 1),+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ },+ ),+ overflow: 'hidden',+ position: 'absolute',+ scale: interpolate(+ frame,+ [0, 16, durationInFrames - 8, durationInFrames - 1],+ [0.97, 1, 1, 0.98],+ {+ easing: Easing.bezier(0.16, 1, 0.3, 1),+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ output: 'perceptual-scale',+ },+ ),+ top: 180,+ transform: 'perspective(100px)',+ translate: interpolate(+ frame,+ [0, 16, durationInFrames - 8, durationInFrames - 1],+ ['0px 30px', '0px 0px', '0px 0px', '0px -20px'],+ {+ easing: Easing.bezier(0.16, 1, 0.3, 1),+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ },+ ),+ width: 900,+ willChange: 'transform, opacity',+ }}+ >+ <ProductCard count={3} index={0} label="A" />+ <ProductCard count={3} index={1} label="B" />+ <ProductCard count={3} index={2} label="C" />+ </Interactive.Div>);};@@ -222,4 +216,5 @@ export const ProductCollection = Interactive.withSchema({componentName: '<ProductCollection>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/commerce/shine/shine.tsx b/packages/docs/elements/commerce/shine/shine.tsxindex 399ec4f6fe..ceb64668d1 100644--- a/packages/docs/elements/commerce/shine/shine.tsx+++ b/packages/docs/elements/commerce/shine/shine.tsx@@ -2,50 +2,46 @@ import {scale} from '@remotion/effects/scale';import {shine} from '@remotion/effects/shine';import React from 'react';import {- AbsoluteFill,Interactive,CanvasImage,HtmlInCanvas,interpolate,useCurrentFrame,useVideoConfig,- type InteractiveTransformProps,} from 'remotion';-const ShineInner: React.FC<InteractiveTransformProps> = ({style}) => {+const ShineInner: React.FC = () => {const frame = useCurrentFrame();const {durationInFrames} = useVideoConfig();return (- <AbsoluteFill style={style} showInTimeline={false}>- <HtmlInCanvas- effects={[- scale({scale: 0.75}),- shine({- progress: interpolate(frame, [0, durationInFrames - 1], [0, 1], {- extrapolateLeft: 'clamp',- extrapolateRight: 'clamp',- }),- angle: 30,- haloSigma: 200,- coreSigma: 65,- haloIntensity: 0.3,- coreIntensity: 0.4,+ <HtmlInCanvas+ effects={[+ scale({scale: 0.75}),+ shine({+ progress: interpolate(frame, [0, durationInFrames - 1], [0, 1], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',}),- ]}+ angle: 30,+ haloSigma: 200,+ coreSigma: 65,+ haloIntensity: 0.3,+ coreIntensity: 0.4,+ }),+ ]}+ height={720}+ name="Shine"+ width={1280}+ >+ <CanvasImage+ fit="cover"height={720}- name="Shine"+ name="A graphic"+ src="https://remotion.media/elements/commerce-tear-a-graphic.png"width={1280}- >- <CanvasImage- fit="cover"- height={720}- name="A graphic"- src="https://remotion.media/elements/commerce-tear-a-graphic.png"- width={1280}- />- </HtmlInCanvas>- </AbsoluteFill>+ />+ </HtmlInCanvas>);};@@ -54,4 +50,5 @@ export const Shine = Interactive.withSchema({componentName: '<Shine>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/commerce/tear/tear.tsx b/packages/docs/elements/commerce/tear/tear.tsxindex 65307ad590..736744a791 100644--- a/packages/docs/elements/commerce/tear/tear.tsx+++ b/packages/docs/elements/commerce/tear/tear.tsx@@ -2,71 +2,67 @@ import {scale} from '@remotion/effects/scale';import {tear} from '@remotion/effects/tear';import React from 'react';import {- AbsoluteFill,Interactive,CanvasImage,Easing,HtmlInCanvas,interpolate,useCurrentFrame,- type InteractiveTransformProps,} from 'remotion';-const TearInner: React.FC<InteractiveTransformProps> = ({style}) => {+const TearInner: React.FC = () => {const frame = useCurrentFrame();return (- <AbsoluteFill style={style} showInTimeline={false}>- <HtmlInCanvas- effects={[- scale({- scale: 0.75,+ <HtmlInCanvas+ effects={[+ scale({+ scale: 0.75,+ }),+ tear({+ jaggedness: 24,+ progress: interpolate(frame, [15, 25], [0, 1], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ easing: [+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ ],}),- tear({- jaggedness: 24,- progress: interpolate(frame, [15, 25], [0, 1], {- extrapolateLeft: 'clamp',- extrapolateRight: 'clamp',- easing: [- Easing.spring({- damping: 200,- mass: 1,- stiffness: 100,- allowTail: true,- durationRestThreshold: 0.02,- overshootClamping: false,- }),- ],- }),- rotation: interpolate(frame, [15, 25], [0, 5], {- extrapolateLeft: 'clamp',- extrapolateRight: 'clamp',- easing: [- Easing.spring({- damping: 200,- mass: 1,- stiffness: 100,- allowTail: true,- durationRestThreshold: 0.02,- overshootClamping: false,- }),- ],- }),+ rotation: interpolate(frame, [15, 25], [0, 5], {+ extrapolateLeft: 'clamp',+ extrapolateRight: 'clamp',+ easing: [+ Easing.spring({+ damping: 200,+ mass: 1,+ stiffness: 100,+ allowTail: true,+ durationRestThreshold: 0.02,+ overshootClamping: false,+ }),+ ],}),- ]}+ }),+ ]}+ height={720}+ name="Tear"+ width={1280}+ >+ <CanvasImage+ fit="cover"height={720}- name="Tear"+ name="A graphic"+ src="https://remotion.media/elements/commerce-tear-a-graphic.png"width={1280}- >- <CanvasImage- fit="cover"- height={720}- name="A graphic"- src="https://remotion.media/elements/commerce-tear-a-graphic.png"- width={1280}- />- </HtmlInCanvas>- </AbsoluteFill>+ />+ </HtmlInCanvas>);};@@ -75,4 +71,5 @@ export const Tear = Interactive.withSchema({componentName: '<Tear>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/layouts/picture-in-picture-transition/picture-in-picture-transition.tsx b/packages/docs/elements/layouts/picture-in-picture-transition/picture-in-picture-transition.tsxindex 9d15097c48..8c1d234d93 100644--- a/packages/docs/elements/layouts/picture-in-picture-transition/picture-in-picture-transition.tsx+++ b/packages/docs/elements/layouts/picture-in-picture-transition/picture-in-picture-transition.tsx@@ -6,16 +6,13 @@ import {Interactive,interpolate,useCurrentFrame,- type InteractiveTransformProps,} from 'remotion';-const PictureInPictureTransitionInner: React.FC<InteractiveTransformProps> = ({- style,-}) => {+const PictureInPictureTransitionInner: React.FC = () => {const frame = useCurrentFrame();return (- <AbsoluteFill style={{overflow: 'hidden', ...style}} showInTimeline={false}>+ <AbsoluteFill style={{overflow: 'hidden'}} showInTimeline={false}><Interactive.Divname="Scene B"style={{@@ -184,4 +181,5 @@ export const PictureInPictureTransition = Interactive.withSchema({componentName: '<PictureInPictureTransition>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/layouts/slide-to-split-screen/slide-to-split-screen.tsx b/packages/docs/elements/layouts/slide-to-split-screen/slide-to-split-screen.tsxindex 67f3145ba0..c0de87eef5 100644--- a/packages/docs/elements/layouts/slide-to-split-screen/slide-to-split-screen.tsx+++ b/packages/docs/elements/layouts/slide-to-split-screen/slide-to-split-screen.tsx@@ -7,14 +7,11 @@ import {interpolate,useCurrentFrame,useVideoConfig,- type InteractiveTransformProps,} from 'remotion';const DIVIDER_WIDTH = 15;-const SlideToSplitScreenInner: React.FC<InteractiveTransformProps> = ({- style,-}) => {+const SlideToSplitScreenInner: React.FC = () => {const frame = useCurrentFrame();const {height, width} = useVideoConfig();const bPanelWidth = width * 0.4;@@ -35,7 +32,6 @@ const SlideToSplitScreenInner: React.FC<InteractiveTransformProps> = ({showInTimeline={false}style={{overflow: 'hidden',- ...style,}}><div@@ -137,4 +133,5 @@ export const SlideToSplitScreen = Interactive.withSchema({componentName: '<SlideToSplitScreen>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/storytelling/polaroid-pictures/polaroid-pictures.tsx b/packages/docs/elements/storytelling/polaroid-pictures/polaroid-pictures.tsxindex 22e9786dd4..dbb9164cd0 100644--- a/packages/docs/elements/storytelling/polaroid-pictures/polaroid-pictures.tsx+++ b/packages/docs/elements/storytelling/polaroid-pictures/polaroid-pictures.tsx@@ -8,7 +8,6 @@ import {interpolate,useCurrentFrame,useVideoConfig,- type InteractiveTransformProps,} from 'remotion';loadFont('normal', {@@ -16,7 +15,7 @@ loadFont('normal', {subsets: ['latin'],});-const PolaroidPicturesAnimation: React.FC = () => {+const PolaroidPicturesInner: React.FC = () => {const frame = useCurrentFrame();const {durationInFrames} = useVideoConfig();@@ -502,19 +501,10 @@ const PolaroidPicturesAnimation: React.FC = () => {);};-const PolaroidPicturesInner: React.FC<InteractiveTransformProps> = ({- style,-}) => {- return (- <AbsoluteFill style={style} showInTimeline={false}>- <PolaroidPicturesAnimation />- </AbsoluteFill>- );-};-export const PolaroidPictures = Interactive.withSchema({Component: PolaroidPicturesInner,componentName: '<PolaroidPictures>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/storytelling/speed-lines/speed-lines.tsx b/packages/docs/elements/storytelling/speed-lines/speed-lines.tsxindex f8a47268a3..2a57abddd4 100644--- a/packages/docs/elements/storytelling/speed-lines/speed-lines.tsx+++ b/packages/docs/elements/storytelling/speed-lines/speed-lines.tsx@@ -11,13 +11,9 @@ import {type SpeedLinesProps = {readonly color?: string;- readonly style?: React.CSSProperties;};-const SpeedLinesInner: React.FC<SpeedLinesProps> = ({- color = '#ffffff',- style,-}) => {+const SpeedLinesInner: React.FC<SpeedLinesProps> = ({color = '#ffffff'}) => {const frame = useCurrentFrame();const {width, height, durationInFrames} = useVideoConfig();const seed = Math.floor(frame / 2);@@ -38,24 +34,22 @@ const SpeedLinesInner: React.FC<SpeedLinesProps> = ({});return (- <AbsoluteFill style={style} showInTimeline={false}>- <AbsoluteFill- name="Speed lines fade"- style={{- opacity: interpolate(- frame,- [0, 3, durationInFrames - 5, durationInFrames - 1],- [0, 0.85, 0.85, 0],- {extrapolateLeft: 'clamp', extrapolateRight: 'clamp'},- ),- }}- >- <svg width={width} height={height} viewBox={`0 0 ${width} ${height}`}>- {lines.map((d, i) => (- <path key={i} d={d} fill={color} />- ))}- </svg>- </AbsoluteFill>+ <AbsoluteFill+ name="Speed lines fade"+ style={{+ opacity: interpolate(+ frame,+ [0, 3, durationInFrames - 5, durationInFrames - 1],+ [0, 0.85, 0.85, 0],+ {extrapolateLeft: 'clamp', extrapolateRight: 'clamp'},+ ),+ }}+ >+ <svg width={width} height={height} viewBox={`0 0 ${width} ${height}`}>+ {lines.map((d, i) => (+ <path key={i} d={d} fill={color} />+ ))}+ </svg></AbsoluteFill>);};@@ -69,4 +63,5 @@ export const SpeedLines = Interactive.withSchema({componentName: '<SpeedLines>',schema: speedLinesSchema,wrapInSequence: true,+ layout: 'absolute-fill',});diff --git a/packages/docs/elements/youtube/youtube-end-card/youtube-end-card.tsx b/packages/docs/elements/youtube/youtube-end-card/youtube-end-card.tsxindex 62d8bb0cc7..ac7cc1e118 100644--- a/packages/docs/elements/youtube/youtube-end-card/youtube-end-card.tsx+++ b/packages/docs/elements/youtube/youtube-end-card/youtube-end-card.tsx@@ -9,7 +9,6 @@ import {spring,useCurrentFrame,useVideoConfig,- type InteractiveTransformProps,} from 'remotion';loadFont('normal', {@@ -300,10 +299,10 @@ const LeftSide = () => {);};-const YouTubeEndCardInner: React.FC<InteractiveTransformProps> = ({style}) => {+const YouTubeEndCardInner: React.FC = () => {return (<AbsoluteFill- style={{backgroundColor: '#FAFAFA', color: 'black', ...style}}+ style={{backgroundColor: '#FAFAFA', color: 'black'}}name="Container"showInTimeline={false}>@@ -339,4 +338,5 @@ export const YouTubeEndCard = Interactive.withSchema({componentName: '<YouTubeEndCard>',schema: {},wrapInSequence: true,+ layout: 'absolute-fill',});