Skip to content
Componentes

Text and typography · Adapted

Text Hover Effect

A giant outlined word appears when the mouse passes over it and takes on your chosen colors near the cursor.

In short

Text Hover Effect is a THM Componentes component that shows a giant outlined word: when the mouse or a finger passes over it, the stroke appears and, near the cursor, takes on the colors of a gradient set in CSS variables. Built in SVG, it fills the available width and works as a hero or footer wordmark.

The catalog, this component's prompt and its sample texts are in Brazilian Portuguese. AI coding assistants apply the prompt the same way.

Text Hover Effect: A giant outlined word appears when the mouse passes over it and takes on your chosen colors near the cursor.
Capture of the catalog demo

What it looks like

Picture a huge word written only with the outlines of its letters, in bold Helvetica, spanning the available width. Without the mouse over it, it stays invisible. When the mouse enters, the outline shows up in light gray, or dark gray in dark mode, and a second stroke draws itself on top over four seconds. Around the cursor, like a flashlight beam, the stroke takes on the colors of a gradient that follows every move; the five colors come from CSS variables your project needs to define. On phones, dragging a finger does the same. When you leave, the colors vanish and the stroke slowly undraws.

You may be looking for this if you asked for something like

  • that giant text on the xAI website that lights up on hover
  • a huge brand name in the footer that appears with the mouse
  • outlined letters that turn colorful where the cursor goes
  • a flashlight effect revealing the outline of a word
  • a giant text logo with a rainbow gradient on hover
  • a hidden word that only shows when someone moves the mouse

Also known as

  • text hover effect
  • outline text hover
  • gradient stroke text
  • spotlight text effect
  • hover reveal text
  • animated wordmark
  • stroke text animation

When to use

  • A giant footer wordmark that closes the page with your brand
  • A tech product hero with the product name front and center
  • Portfolio and agency pages that call for an interactive detail
  • Splash screens with a single short word

When to avoid

  • Essential information, since the word stays invisible until a mouse or finger passes over it
  • Long phrases, because the drawing has a fixed aspect ratio that fits one short word

How to ask your AI

Sample request
Create an SVG outline text effect for the brand name in my footer: a giant word that reveals a gradient in my brand colors around the cursor, with touch support, a visible still version for reduced motion and an accessible label.

With THM Componentes, you paste the full prompt from the catalog together with this component's code, and the AI reproduces this exact effect instead of improvising.

Questions about Text Hover Effect

Does Text Hover Effect work on phones?

Yes. Text Hover Effect handles touch events: touching and dragging a finger over the word shows the outline and makes the gradient follow the finger, just like the mouse. Lifting the finger clears the colors and undraws the stroke. The THM Componentes prompt asks for testing on mobile and comparing LCP and INP.

Is the Text Hover Effect word invisible without interaction?

In the original code, yes: Text Hover Effect only shows the outline while the mouse or a finger is over it. So do not use it for essential information, or ask your AI to keep a subtle outline visible at all times, which also covers the still version for reduced motion.

Can I change the gradient colors in Text Hover Effect?

Yes, and it is worth doing at install time. The Text Hover Effect gradient reads five CSS variables, such as --yellow-500, that are not part of the default Tailwind v4 theme; without them, the stroke near the cursor turns black instead of showing the gradient. The THM Componentes prompt tells your AI to use your project color tokens instead.

Text and typography

Related components

Give your AI a studio-grade repertoire

268 Vue and Nuxt components, 115 exclusive, a ready prompt in every one. Single payment, lifetime access and a 7-day guarantee.