Text Hover Effect

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

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.

Component Code

You can copy and paste the following code to create these components:

TextHoverEffect.vue