Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
import { Interactive, interpolate } from "remotion";
import type { ReleaseTeaserScene } from "../content";
import { ease, fitText } from "../motion";
import { BrandImage, OrbitMark } from "../ui";
export function ReleaseLockup({
scene,
frame,
}: {
scene: ReleaseTeaserScene;
frame: number;
}) {
const title = `${scene.brandName}${scene.release ? ` ${scene.release}` : ""}`;
const reveal = scene.reducedMotion ? 1 : ease(frame, 0, 32);
return (
<Interactive.Div
name="Release lockup"
style={{
position: "absolute",
inset: 0,
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
opacity: reveal,
filter:
!scene.reducedMotion && reveal < 0.99
? `blur(${(1 - reveal) * 6}px)`
: undefined,
scale: scene.reducedMotion
? 1
: interpolate(frame, [0, 350], [0.97, 1.03], {
extrapolateLeft: "clamp",
extrapolateRight: "clamp",
}),
}}
>
<div
style={{
display: "flex",
alignItems: "center",
gap: 16,
marginBottom: 16,
}}
>
<div style={{ width: 34, height: 34, flexShrink: 0 }}>
{scene.logoSrc ? (
<BrandImage
src={scene.logoSrc}
style={{ width: 34, height: 34, objectFit: "contain" }}
/>
) : (
<OrbitMark size={34} color={scene.theme.accent} />
)}
</div>
<Interactive.Div
name="Brand and release"
style={{
fontSize: fitText(title, 70, 750),
fontWeight: 600,
lineHeight: 1,
color: scene.theme.foreground,
whiteSpace: "pre",
textAlign: "center",
}}
>
{title}
</Interactive.Div>
</div>
<Interactive.Div
name="Closing line"
style={{
fontSize: fitText(scene.tagline, 20, 740),
lineHeight: 1.3,
color: scene.theme.muted,
whiteSpace: "pre",
textAlign: "center",
opacity: scene.reducedMotion ? 1 : ease(frame, 8, 40),
}}
>
{scene.tagline}
</Interactive.Div>
</Interactive.Div>
);
}