Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
import type { CSSProperties } from "react";
import { Img, useRemotionEnvironment } from "remotion";
export function BrandImage({
src,
style,
}: {
src: string;
style: CSSProperties;
}) {
const { isStudio, isRendering } = useRemotionEnvironment();
if (isStudio && !isRendering) {
// biome-ignore lint/performance/noImgElement: Studio-only media registration workaround; exports and embedded players retain Img's loading gate.
return <img src={src} alt="" style={style} />;
}
return <Img src={src} style={style} />;
}
/** Original open-orbit mark; the opening matches the dimensional background. */
export function OrbitMark({
color,
size = 30,
}: {
color: string;
size?: number;
}) {
return (
<svg
width={size}
height={size}
viewBox="-240 -240 480 480"
fill="none"
aria-hidden="true"
>
<path
d="M209.23 -67.98 A220 220 0 1 1 116.58 -186.57 L71.01 -113.64 A134 134 0 1 0 127.44 -41.41 Z"
fill={color}
/>
</svg>
);
}