Preet Suthar

Magic Text

Text 860

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

    837
  • Hero 2

    Hero 2

    825
  • Typewriter Text

    Typewriter Text

    787
  • Full Screen Signup

    Full Screen Signup

    753
  • AI Chat Input

    AI Chat Input

    751
  • Timeline

    Timeline

    699

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    116
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • NeonRGBTextEffect

    NeonRGBTextEffect

    145
  • Apple Hello Effect

    Apple Hello Effect

    624
  • Vapour Text Effect

    Vapour Text Effect

    2K
  • Blur Reveal

    Blur Reveal

    313
  • Text Loop

    Text Loop

    323
  • Aero Hero-3

    Aero Hero-3

    580