import React from 'react'; import { interpolate, interpolateColors, useCurrentFrame, useVideoConfig, } from 'remotion'; const CarSlideshow: React.FC<{ readonly title: string; }> = ({title}) => { const frame = useCurrentFrame(); const {width, height, durationInFrames} = useVideoConfig(); const left = interpolate(frame, [0, durationInFrames], [width, width * -1]); const backGroundColor = interpolateColors( frame, [0, Math.floor(durationInFrames / 2), durationInFrames], ['red', 'hotpink', 'green'], ); return (

{title}

); }; export default CarSlideshow;