Text Hover Effect
A text hover effect that animates and outlines gradient on hover, as seen on x.ai
Installation
Run the following command
npx shadcn@latest add @aceternity/text-hover-effect
Props
Prop | Type | Default | Description |
---|---|---|---|
text | string | Required | The text to be displayed with the hover effect |
duration | number | 0 | The duration of the mask transition animation in seconds |
The initial code of this component is contributed by Sudhanshu Mishra
Build websites faster and 10x better than your competitors with
Aceternity UI Pro
Next.js 15, Tailwind CSS v4 and Motion for react powered templates
70+ templates and component blocks combined
Ready to copy paste component blocks, save days of development time

