import React from 'react'; import { spring, useCurrentFrame, useVideoConfig, interpolate } from 'remotion'; interface PowertoolsLogoProps { size?: number; } export default function PowertoolsLogo({ size = 379 }: PowertoolsLogoProps) { const frame = useCurrentFrame(); const { fps } = useVideoConfig(); // Create staggered animations for each rectangle const scale1 = spring({ frame, fps, from: 0, to: 1, config: { damping: 12 } }); const scale2 = spring({ frame: frame - 5, fps, from: 0, to: 1, config: { damping: 12 } }); const scale3 = spring({ frame: frame - 10, fps, from: 0, to: 1, config: { damping: 12 } }); const scale4 = spring({ frame: frame - 15, fps, from: 0, to: 1, config: { damping: 12 } }); const scale5 = spring({ frame: frame - 20, fps, from: 0, to: 1, config: { damping: 12 } }); // Text animation const textOpacity = spring({ frame: frame - 25, fps, from: 0, to: 1, config: { damping: 12 } }); // Rewind text animations - bouncing and color changing effect const rewindRotation = interpolate( frame, [0, 30], [360, 0], { extrapolateRight: 'clamp' } ); const bounceY = spring({ frame: frame - 25, fps, from: -20, to: 0, config: { mass: 0.5, damping: 4 } }); const hue = interpolate( frame % 120, [0, 60, 120], [0, 180, 360] ); return (