Kokonut UI

Sliced Text

Text 9

About

An animated text that splits into two horizontal halves and slices apart on hover.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sliced Text to your project and fits it to your theme.

Code

How Sliced Text is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import SlicedText from "@/components/ui/sliced-text";

export default function SlicedTextDemo() {
  return (
    <div className="flex min-h-[300px] w-full items-center justify-center bg-background p-8">
      <SlicedText
        text="Sliced Text"
        className="text-6xl font-bold text-foreground"
        splitSpacing={4}
      />
    </div>
  );
}

Dependencies

More by Kokonut UI

View all
  • Background Paths

    Background Paths

    5.9K
  • Shape Landing Hero

    Shape Landing Hero

    3.6K
  • Beams Background

    Beams Background

    2.9K
  • Bento Grid

    Bento Grid

    2.2K
  • v0 AI Chat

    v0 AI Chat

    2.2K
  • AI Voice Input

    AI Voice Input

    1.7K
  • Hand Writing Text

    Hand Writing Text

    1.3K
  • Action Search Bar

    Action Search Bar

    1.3K

More in Text

View all
  • Motion Blur Text

    Motion Blur Text

    45
  • Rainbow Text Effect

    Rainbow Text Effect

    58
  • Short Slide Down

    Short Slide Down

    45
  • Blur Reveal

    Blur Reveal

    72
  • Text Reveal

    Text Reveal

    29
  • Apple Hello Effect

    Apple Hello Effect

    659
  • Text Highlight

    Text Highlight

    96
  • Scroll Fill Headline

    Scroll Fill Headline

    13