Skip to content
MarkasUI
Type to search

    Guide

    MarkasUI

    Form

    Feedback

    Overlay

    Navigation

    Data

    Sections

    Animations

    Backgrounds

    Buttons

    Templates

    Pages

    Vertical Cut Reveal

    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>
    import { Component } from "@angular/core";
    import { VerticalCutReveal } from "./markas/vertical-cut-reveal.component";
    
    @Component({
      selector: "markas-example",
      imports: [VerticalCutReveal],
      template: `
        <h2 class="text-4xl leading-tight font-semibold tracking-tight text-ink">
          <span
            markas-vertical-cut-reveal
            text="Components that feel at home in every stack"
          ></span>
        </h2>
      `,
    })
    export default class VerticalCutRevealExample {}

    Examples

    Hero lines

    Design once. Ship to Blade, React, and Vue.

    Browse components

    Design once. Ship to Blade, React, and Vue.

    Browse components

    Design once. Ship to Blade, React, and Vue.

    Browse components

    Design once. Ship to Blade, React, and Vue.

    Browse components

    Design once. Ship to Blade, React, and Vue.

    Browse components

    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

    Jakarta Design Week

    12 to 14 March 2027, Taman Ismail Marzuki

    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

    Rp 149.000

    per member each month, billed yearly

    Installation

    npx markasui@latest add vertical-cut-reveal

    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 with implode(chr(10), [...]) or a double quoted PHP string.
    • Use rising delay values 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

    NameTypeDefaultDescription
    textstring-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.
    staggernumber60Milliseconds between one unit and the next.
    durationnumber700Milliseconds each unit takes to appear.
    delaynumber0Milliseconds 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.