Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
---
title: Shared Axis Y
description: Per-word hard-cut staircase transition for sharp editorial phrase swaps
component: shared-axis-y
vibe: clean
length: 90
useWhen:
- "Swapping two text values in a slide-deck style transition (A → B → C chained in `<Sequence>`)."
- "You want a crisp, editorial replacement without blur or scale — vertical word-by-word staircase reads as confident."
- "The outgoing and incoming phrases are thematically related (before/after, old/new, step N / step N+1)."
avoidWhen:
- "You only need to bring text in for the first time with no outgoing content — use `short-slide-down` or `staggered-fade-up` for a clean entrance instead."
- "You want a depth or focus-shift feel between two contexts — use `shared-axis-z` which scales rather than slides for that spatial metaphor."
- "The transition should feel playful or bouncy — the hard-cut staircase is intentionally sharp; use `spring-scale-in` for a springy swap."
askedAs:
- "slide deck text swap hard cut"
- "editorial phrase staircase transition"
- "I want to swap A to B to C values word by word with a vertical step"
- "sharp text change between two phrases in a slide style"
- "chained headline updates that feel like a presentation moving on"
- "viewer sees crisp vertical word replacement, no softness"
---
<ComponentPreview name="shared-axis-y" />
<InstallBlock name="shared-axis-y" />
## Usage
```tsx
// src/Root.tsx
import { Composition, Sequence } from "remotion";
import { SharedAxisY } from "@/components/remocn/shared-axis-y";
const SharedAxisYScene = () => (
<>
<Sequence durationInFrames={40}>
<SharedAxisY fromText="Layered navigation." toText="Hierarchy made clear." />
</Sequence>
<Sequence from={40} durationInFrames={40}>
<SharedAxisY fromText="Hierarchy made clear." toText="Depth with restraint." />
</Sequence>
</>
);
export const RemotionRoot = () => (
<Composition
id="SharedAxisY"
component={SharedAxisYScene}
durationInFrames={80}
fps={30}
width={1280}
height={720}
/>
);
```
Each word in the outgoing phrase snaps off in a hard cut, then the incoming phrase's words snap on in a staircase pattern—no fade or motion, just a sharp editorial swap. Chaining two instances in back-to-back `Sequence`s walks through a full phrase chain—the second transition reuses the first's `toText` as its `fromText`, so the text flows A → B → C.
### Chained example
This is the two-`Sequence` chain above rendered on an 80-frame timeline:
<ComponentExample name="shared-axis-y" />
### With Backdrop
The component renders transparent — supply the background via `Backdrop`. It ships single-theme; edit the copied file to re-theme colors.
Pair with `Backdrop` to place the text inside a full-frame fill with a rounded, shadowed content frame:
```tsx
import { Composition } from "remotion";
import { SharedAxisY } from "@/components/remocn/shared-axis-y";
import { Backdrop } from "@/components/remocn/backdrop";
const SharedAxisYScene = () => (
<Backdrop fill={{ type: "color", value: "#ffffff" }}>
<SharedAxisY
fromText="Layered navigation."
toText="Hierarchy made clear."
/>
</Backdrop>
);
export const RemotionRoot = () => (
<Composition
id="SharedAxisY"
component={SharedAxisYScene}
durationInFrames={90}
fps={30}
width={1280}
height={720}
/>
);
```
<PropsTable title="Props"
rows={[
{
name: "fromText",
type: "string",
required: true,
description: "The outgoing phrase, shown first then hard-cuts off word by word.",
},
{
name: "toText",
type: "string",
required: true,
description: "The incoming phrase that snaps in word by word.",
},
{
name: "fontSize",
type: "number",
default: "72",
description: "Font size in pixels",
},
{
name: "fontWeight",
type: "number",
default: "600",
description: "CSS font-weight",
},
{
name: "color",
type: "string",
default: "\"#171717\"",
description: "Text color (any valid CSS color)",
},
{
name: "className",
type: "string",
description: "Optional className passed to the wrapper",
},
]}
/>