Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
---
title: Card Push Line
description: "A headline lands, then the camera pushes in on a prompt card that types a slash command and prompt."
component: card-push-line
vibe: tech
length: 120
useWhen:
- "An AI product beat that pairs a short headline with the prompt box it describes, such as a promise followed by proof."
- "A prompt card needs a slash command chip, an attached file tile and a typed request with a send button that arms."
- "You want a calm camera push rather than a dramatic zoom on the text."
avoidWhen:
- "You want the camera to ride the caret and punch in on a phrase — use `caret-dolly`, the dolly twin of this scene."
- "The prompt should continue into a full chat conversation — use `ai-prompt-flow`."
- "Several files drop into the box — use `multi-file-drop`."
askedAs:
- "camera push on prompt card"
- "slash command typed in a card"
- "I want a headline then a push-in on an input card typing a command and prompt"
- "AI tool demo where a command is typed into a card"
- "show how to invoke a feature with a slash command and a prompt"
- "launch beat moving from a statement to a close-up of typed input"
---
<ComponentPreview name="card-push-line" />
<InstallBlock name="card-push-line" />
## Usage
```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { CardPushLine } from "@/components/remocn/card-push-line";
const CardPushLineScene = () => (
<CardPushLine
line="You can just write it"
command="/launch-video"
prompt="a teaser for the 2.0 release"
attachName="release-notes-2.0.md"
/>
);
export const RemotionRoot = () => (
<Composition
id="CardPushLine"
component={CardPushLineScene}
durationInFrames={144}
fps={30}
width={1280}
height={720}
/>
);
```
The `line` headline lands word by word, then a prompt card pushes in. It types the `command` as a chip, attaches a file tile and types the `prompt` until the send button arms. Pass your own `line`, `command`, `prompt` and `attachName`; it ships light and dark through `theme`.
The ground is a live gradients.sh shader (`GshGround`), installed with the component as `@remocn/gsh`. Pick another look with the `ground` preset prop.
<PropsTable title="Props"
rows={[
{
name: "line",
type: "string",
default: "\"You can just write it\"",
description: "Headline shown above the card.",
},
{
name: "command",
type: "string",
default: "\"/launch-video\"",
description: "Slash command typed as a chip.",
},
{
name: "prompt",
type: "string",
default: "\"a teaser for the 2.0 release\"",
description: "Request typed after the command.",
},
{
name: "placeholder",
type: "string",
default: "\"Describe your launch…\"",
description: "Placeholder text shown before typing starts.",
},
{
name: "modelLabel",
type: "string",
default: "\"Remocn 1\"",
description: "Label of the model selector in the card toolbar.",
},
{
name: "chipLabel",
type: "string",
default: "\"Brand kit\"",
description: "Label of the chip in the card toolbar.",
},
{
name: "attachName",
type: "string",
default: "\"release-notes-2.0.md\"",
description: "File name shown on the attachment tile.",
},
{
name: "attachMeta",
type: "string",
default: "\"Markdown · 18 KB\"",
description: "Meta text under the attachment name.",
},
{
name: "accent",
type: "string",
description: "Accent color. Defaults depend on theme.",
},
{
name: "ink",
type: "string",
description: "Text color override.",
},
{
name: "background",
type: "string",
description: "Background color override for the stage.",
},
{
name: "theme",
type: "\"dark\" | \"light\"",
default: "\"dark\"",
description: "Color scheme. Ships light and dark.",
},
{
name: "ground",
type: "GshPresetId",
description: "Shader preset id for the animated background.",
},
{
name: "groundParams",
type: "Partial<GradientParams>",
description: "Partial shader parameters that override the ground preset.",
},
]}
/>