Text that rises from behind a cut line per letter, word, or line when it scrolls into view. Made for hero headings.
Components that feel at home in every stack
Components that feel at home in every stack
Components that feel at home in every stack
Components that feel at home in every stack
Components that feel at home in every stack
<h2 class="text-4xl leading-tight font-semibold tracking-tight text-ink">
<x-markas.vertical-cut-reveal text="Components that feel at home in every stack" />
</h2>import { VerticalCutReveal } from "@/components/markas/VerticalCutReveal";
export default function VerticalCutRevealExample() {
return (
<h2 className="text-4xl leading-tight font-semibold tracking-tight text-ink">
<VerticalCutReveal text="Components that feel at home in every stack" />
</h2>
);
}<script setup lang="ts">
import VerticalCutReveal from "@/components/markas/VerticalCutReveal.vue";
</script>
<template>
<h2 class="text-4xl leading-tight font-semibold tracking-tight text-ink">
<VerticalCutReveal text="Components that feel at home in every stack" />
</h2>
</template><script lang="ts">
import VerticalCutReveal from "$lib/components/markas/VerticalCutReveal.svelte";
</script>
<h2 class="text-4xl leading-tight font-semibold tracking-tight text-ink">
<VerticalCutReveal text="Components that feel at home in every stack" />
</h2>---
import VerticalCutReveal from "@/components/markas/VerticalCutReveal.astro";
---
<h2 class="text-4xl leading-tight font-semibold tracking-tight text-ink">
<VerticalCutReveal text="Components that feel at home in every stack" />
</h2>Examples
Hero lines
Design once. Ship to Blade, React, and Vue.
Browse componentsDesign once. Ship to Blade, React, and Vue.
Browse componentsDesign once. Ship to Blade, React, and Vue.
Browse componentsDesign once. Ship to Blade, React, and Vue.
Browse componentsDesign once. Ship to Blade, React, and Vue.
Browse components<div class="py-4 text-center">
<h2 class="text-4xl leading-tight font-semibold tracking-tight text-ink">
<x-markas.vertical-cut-reveal :text="implode(chr(10), ['Design once.', 'Ship to Blade,', 'React, and Vue.'])" split="lines" :stagger="120" />
</h2>
<a href="#" class="mt-6 inline-flex h-10 items-center rounded-lg bg-primary px-4 text-sm font-medium text-on-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary">Browse components</a>
</div>Letters from the center
Jakarta Design Week
12 to 14 March 2027, Taman Ismail Marzuki
Jakarta Design Week
12 to 14 March 2027, Taman Ismail Marzuki
Jakarta Design Week
12 to 14 March 2027, Taman Ismail Marzuki
Jakarta Design Week
12 to 14 March 2027, Taman Ismail Marzuki
12 to 14 March 2027, Taman Ismail Marzuki
<div class="text-center">
<p class="text-5xl font-bold tracking-tight text-ink">
<x-markas.vertical-cut-reveal text="Jakarta Design Week" split="chars" direction="down" from="center" :stagger="25" />
</p>
<p class="mt-3 text-sm text-muted">12 to 14 March 2027, Taman Ismail Marzuki</p>
</div>Pricing card in sequence
Team plan
Rp 149.000
per member each month, billed yearly
Team plan
Rp 149.000
per member each month, billed yearly
Team plan
Rp 149.000
per member each month, billed yearly
Team plan
Rp 149.000
per member each month, billed yearly
Team plan
<div class="rounded-xl border border-line bg-surface p-6">
<h3 class="text-xl font-semibold text-ink"><x-markas.vertical-cut-reveal text="Team plan" /></h3>
<p class="mt-2 text-4xl font-semibold tracking-tight text-ink"><x-markas.vertical-cut-reveal text="Rp 149.000" split="chars" from="random" :stagger="30" :delay="200" /></p>
<p class="mt-1 text-sm text-muted"><x-markas.vertical-cut-reveal text="per member each month, billed yearly" :stagger="30" :delay="500" /></p>
</div>Installation
npx markasui@latest add vertical-cut-revealpnpm dlx markasui@latest add vertical-cut-revealyarn dlx markasui@latest add vertical-cut-revealbunx --bun markasui@latest add vertical-cut-reveal- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Install the dependency:
npm install alpinejs - Copy the component source below to
resources/views/components/markas/vertical-cut-reveal.blade.php.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/VerticalCutReveal.tsx.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/VerticalCutReveal.vue.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/lib/components/markas/VerticalCutReveal.svelte.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/components/markas/VerticalCutReveal.astro.
- Make sure Tailwind CSS v4 and markas.css are installed. See Installation.
- Copy the component source below to
src/app/markas/vertical-cut-reveal.component.ts.
Usage
<h1 class="text-5xl leading-tight font-semibold">
<x-markas.vertical-cut-reveal :text="implode(chr(10), ['Design once.', 'Ship everywhere.'])" split="lines" />
</h1>
<p class="text-lg">
<x-markas.vertical-cut-reveal text="Blade, React, and Vue" split="chars" from="center" :delay="300" />
</p>import { VerticalCutReveal } from "@/components/markas/VerticalCutReveal";
<h1 className="text-5xl leading-tight font-semibold">
<VerticalCutReveal text={'Design once.\nShip everywhere.'} split="lines" />
</h1>
<p className="text-lg">
<VerticalCutReveal text="Blade, React, and Vue" split="chars" from="center" delay={300} />
</p><template>
<h1 class="text-5xl leading-tight font-semibold">
<VerticalCutReveal :text="'Design once.\nShip everywhere.'" split="lines" />
</h1>
<p class="text-lg">
<VerticalCutReveal
text="Blade, React, and Vue"
split="chars"
from="center"
:delay="300"
/>
</p>
</template><script lang="ts">
import VerticalCutReveal from "$lib/components/markas/VerticalCutReveal.svelte";
</script>
<h1 class="text-5xl leading-tight font-semibold">
<VerticalCutReveal text={"Design once.\nShip everywhere."} split="lines" />
</h1>
<p class="text-lg">
<VerticalCutReveal
text="Blade, React, and Vue"
split="chars"
from="center"
delay={300}
/>
</p>---
import VerticalCutReveal from "@/components/markas/VerticalCutReveal.astro";
---
<h1 class="text-5xl leading-tight font-semibold">
<VerticalCutReveal text={"Design once.\nShip everywhere."} split="lines" />
</h1>
<p class="text-lg">
<VerticalCutReveal text="Blade, React, and Vue" split="chars" from="center" delay={300} />
</p>import { Component } from "@angular/core";
import { VerticalCutReveal } from "./markas/vertical-cut-reveal.component";
@Component({
selector: "app-launch",
imports: [VerticalCutReveal],
template: `
<h1 class="text-5xl leading-tight font-semibold">
<span markas-vertical-cut-reveal [text]="title" split="lines"></span>
</h1>
<p class="text-lg">
<span
markas-vertical-cut-reveal
text="Blade, React, and Vue"
split="chars"
from="center"
delay="300"
></span>
</p>
`,
})
export class Launch {
protected readonly title = "Design once.\nShip everywhere.";
}Angular uses an attribute selector on a span: <span markas-vertical-cut-reveal>. Pass a text with a line break through a property binding.
- The text is rendered in place on the server. On the client each unit hides behind its cut line and rises once the text scrolls into view.
- A line break (
\n) starts a new line. In Blade, build it withimplode(chr(10), [...])or a double quoted PHP string. - Use rising
delayvalues to reveal a title, a price, and a caption in order. - Screen readers hear the full text once. With reduced motion, the text is shown at once. The Blade version needs Alpine.js.
Props
| Name | Type | Default | Description |
|---|---|---|---|
text | string | - | The text to reveal. A line break (\n) starts a new line. |
split | "chars" | "words" | "lines" | "words" | Reveal each letter, each word, or each line. |
direction | "up" | "down" | "up" | Units rise from below the cut or drop from above it. |
from | "first" | "last" | "center" | "random" | "first" | Where the stagger starts. random uses a fixed shuffled order. |
stagger | number | 60 | Milliseconds between one unit and the next. |
duration | number | 700 | Milliseconds each unit takes to appear. |
delay | number | 0 | Milliseconds to wait after the text scrolls into view. Use rising delays to reveal a title, then its subtitle. |
Accessibility
- Screen readers read the full text once from a visually hidden copy; the animated units are aria-hidden.
- The text is rendered in place on the server, so it is readable without JavaScript.
- With reduced motion, the text is shown at once.
Related components
More animations components with the same classes in every framework.
- Avatar GroupOverlapping stack of avatars that spreads out on hover, shows each name in a tooltip, and collapses extra people into a +N chip.
- Letter SwapText whose letters slide out and back in with a stagger when its link or button is hovered or focused. Forward, ping-pong, or shuffled order.
- MarqueeEndless horizontal or vertical scroll of any content, with faded edges, reverse direction, and a pause on hover or focus.
- Number TickerNumber that counts up to its value when it scrolls into view, with thousands separators, decimals, and a prefix or suffix.
- Scroll ProgressThin bar at the top of the page or a scrolling container that fills as the reader scrolls.
- Spotlight CardCard with a soft radial light that follows the pointer and a border that glows near it. Lights up on keyboard focus too.