import { AbsoluteFill, interpolate, spring, useCurrentFrame, useVideoConfig, } from "remotion"; import { Arc } from "./Arc"; import { Atom } from "./Atom"; export type LogoProps = { readonly logoColor1: string; readonly logoColor2: string; }; export const Logo: React.FC = ({ logoColor1: color1, logoColor2: color2, }) => { const videoConfig = useVideoConfig(); const frame = useCurrentFrame(); const development = spring({ config: { damping: 100, mass: 0.5, }, fps: videoConfig.fps, frame, }); const rotationDevelopment = spring({ config: { damping: 100, mass: 0.5, }, fps: videoConfig.fps, frame, }); const scale = spring({ frame, config: { mass: 0.5, }, fps: videoConfig.fps, }); const logoRotation = interpolate( frame, [0, videoConfig.durationInFrames], [0, 360], ); return ( ); };