Preet Suthar

Magic Text

Text 846

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

    Shining Text

    1.5K
  • Hero 2

    Hero 2

    818
  • Toolbar

    Toolbar

    816
  • Typewriter Text

    Typewriter Text

    768
  • AI Chat Input

    AI Chat Input

    731
  • Full Screen Signup

    Full Screen Signup

    724
  • Timeline

    Timeline

    673

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • Motion Blur Text

    Motion Blur Text

    34
  • Rainbow Text Effect

    Rainbow Text Effect

    46
  • Text Reveal

    Text Reveal

    315
  • Blur Reveal

    Blur Reveal

    296
  • NeonRGBTextEffect

    NeonRGBTextEffect

    144
  • Shine Border

    Shine Border

    949
  • Glow

    Glow

    40