Skip to content

🎥 Make videos programmatically with React

787 B
Raw Blame
import {colorCorrection} from '@remotion/effects/color-correction';
import {grayscale} from '@remotion/effects/grayscale';
import {HtmlInCanvas, Sequence} from 'remotion';
import {RenderModalCodecPreview} from '../../RenderModalCodec';

export const ExploreRemotionRenderModalCodec = () => {
	return (
		<HtmlInCanvas
			width={1080}
			height={1080}
			effects={[
				grayscale({}),
				colorCorrection({
					pivot: 0,
					shadows: 1,
					whites: 0.26,
					blacks: -1,
					temperature: -1,
				}),
			]}
		>
			<div
				style={{
					position: 'absolute',
					left: -420,
					top: 0,
					width: 1920,
					height: 1080,
				}}
			>
				<Sequence name="RenderModalCodec" durationInFrames={127}>
					<RenderModalCodecPreview />
				</Sequence>
			</div>
		</HtmlInCanvas>
	);
};