Text Hover Effect

A text hover effect that animates and outlines gradient on hover, as seen on x.ai

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/text-hover-effect.json"

Install Manually

Copy and paste the following code

TextHoverEffect.vue

API

Prop NameTypeDefaultDescription
textstringRequiredThe text to be displayed with the hover effect.
durationnumber200The duration of the mask transition animation in seconds.
strokeWidthnumber0.75The width of the text stroke.
opacitynumbernullThe opacity of the text.