Preet Suthar

Magic Text

Text 849

About

Simple animated text component that reveals as we scroll down the page.

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

Code

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

Usage.tsx

import { MagicText } from "@/components/ui/magic-text"

const Demo = () => {
  return (
    <>
      <div className= "relative flex items-center justify-center pb-[30rem] mt-[70rem]" >
        <MagicText
          text={
          "Hi there! I'm preet, creator of HextaUI. Thank you so much of all the support and love you've shown me. I hope you enjoy using HextaUI as much as I enjoyed creating it."
        }
        />
      < /div>
        <p className="absolute top-1/2 left-1/2 -translate-x-1/2">Scroll Down 👇</p>
    < />
    )
}

export { Demo }

Dependencies

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Shining Text

    Shining Text

    1.6K
  • Toolbar

    Toolbar

    830
  • Hero 2

    Hero 2

    820
  • Typewriter Text

    Typewriter Text

    780
  • AI Chat Input

    AI Chat Input

    745
  • Full Screen Signup

    Full Screen Signup

    743
  • Timeline

    Timeline

    687

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    107
  • Rainbow Text Effect

    Rainbow Text Effect

    46
  • NeonRGBTextEffect

    NeonRGBTextEffect

    144
  • Motion Blur Text

    Motion Blur Text

    37
  • Shine Border

    Shine Border

    964
  • Vapour Text Effect

    Vapour Text Effect

    2K
  • Apple Hello Effect

    Apple Hello Effect

    615
  • Text Skeleton

    Text Skeleton

    13