import type React from "react"; import { AbsoluteFill, Img, interpolate, staticFile, useCurrentFrame } from "remotion"; import { ClipReveal } from "@/components/ClipReveal"; import { COLOR } from "@/lib/colors"; import { FONT, TEXT } from "@/lib/fonts"; export const GitHubCTA: React.FC<{ labelFrame?: number; logoFrame?: number; taglineFrame?: number; ctaFrame?: number; urlFrame?: number; }> = ({ labelFrame = 0, logoFrame = 15, taglineFrame = 30, ctaFrame = 50, urlFrame = 65 }) => { const frame = useCurrentFrame(); const logoScale = interpolate(frame, [logoFrame, logoFrame + 15], [0, 1], { extrapolateLeft: "clamp", extrapolateRight: "clamp", }); const glowRadius = interpolate(frame, [logoFrame, logoFrame + 15], [0, 200], { extrapolateLeft: "clamp", extrapolateRight: "clamp", }); const borderOpacity = interpolate(Math.sin(frame * 0.06), [-1, 1], [0.3, 0.6]); return ( 100% OPEN SOURCE
Free forever.
Star us on GitHub
github.com/snapotter-hq/SnapOtter ); };