Preet Suthar

Magic Text

Text 893

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.8K
  • Shining Text

    Shining Text

    1.7K
  • Toolbar

    Toolbar

    859
  • Hero 2

    Hero 2

    857
  • Typewriter Text

    Typewriter Text

    808
  • AI Chat Input

    AI Chat Input

    779
  • Full Screen Signup

    Full Screen Signup

    763
  • Timeline

    Timeline

    728

More in Text

View all
  • NeonRGBTextEffect

    NeonRGBTextEffect

    153
  • Motion Blur Text

    Motion Blur Text

    44
  • Rainbow Text Effect

    Rainbow Text Effect

    57
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    131
  • Text Reveal

    Text Reveal

    29
  • Toolbar

    Toolbar

    54
  • Bottom Up Letters

    Bottom Up Letters

    55
  • Apple Hello Effect

    Apple Hello Effect

    658