# Cata-vento

A button with a thin rainbow border that keeps spinning around the text, softened by a slight blur.

> Cata-vento is a THM Componentes component: a button with a thin rainbow gradient border that keeps spinning around the text, softened by a slight blur. It is pure CSS, uses the native button element and lets you adjust colors, thickness, corners, blur and speed. It suits the main call to action on a landing page or checkout.

- Category: Buttons and cursors
- Origin: Adapted from open source under the MIT license, with a ready THM prompt
- Load weight: Light: CSS or light JavaScript, no noticeable cost
- Technology: Vue 3, TypeScript, Tailwind CSS v4
- Interaction: Mouse, Touch, Keyboard
- URL: https://vibecode.thmtecnologia.com/en/components/cata-vento/

## What it looks like

Imagine a multicolored neon frame spinning around the button. A color wheel of red, orange, yellow, green, blue, indigo and violet rotates behind the button, one turn every 2.5 seconds, and only shows as a 2 pixel border around the content, with a 4 pixel blur that softens the glow. The center is black by default, with 8 pixel corners. The center color does not follow the theme by itself: in the demo it is black in dark mode and white in light mode. The motion is continuous and does not depend on the mouse.

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

- “a button with a colorful border spinning around it”
- “a buy button with an animated rainbow outline”
- “a call to action that stands out without making it bigger”
- “a button with a neon rainbow glow on the edge”
- “a gradient outline that keeps rotating on the main button”
- “make the checkout button look like a gaming product”

## Also known as

rotating rainbow outline, gradient border button, rainbow border button, conic gradient border, animated border button, spinning border button

## When to use

- The main button on a launch landing page
- A subscribe or buy call to action at the end of a sales page
- Tech, gaming or creator products with a vibrant look
- A single highlight per screen, near the price or the form

## When to avoid

- Several buttons on the same screen, where the spinning borders compete
- Understated brands, unless you swap the rainbow for your project palette

## How to ask your AI

```text
Create a button with an animated conic gradient border spinning around the text, in my brand colors, with a slight blur. Use the native button element with a visible focus state, keep the text contrast and stop the rotation for people who prefer reduced motion.
```

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 Cata-vento

### Can I change the colors of Cata-vento?

Yes. Cata-vento takes the list of colors through the colors prop and builds the gradient from it, so you can use only your brand tones. You can also adjust the border thickness, the blur, the corners, the center color and the duration of each turn, which is 2.5 seconds by default.

### Does Cata-vento work in dark mode?

It does, but the center color of Cata-vento does not follow the theme by itself: it comes from the bgColor prop, black by default. The demo switches it to white in light mode. The THM Componentes prompt tells your AI to use your project color tokens, which handles the switch between light and dark.

### Does Cata-vento respect reduced motion settings?

In its original form, Cata-vento always spins. The THM Componentes prompt asks your AI for a static version for people who turn on reduced motion, which is simple here: pause the CSS animation and keep the colored border still.

## Related components

- [Arrebol](https://vibecode.thmtecnologia.com/en/components/arrebol/): A dark button with rainbow colors running along its bottom edge and a blurred colorful glow underneath.
- [Lampejo](https://vibecode.thmtecnologia.com/en/components/lampejo/): A black pill button with a beam of light running along its edge and an inner glow that grows on hover.
- [Satélite](https://vibecode.thmtecnologia.com/en/components/satelite/): A small beam of colored light circles the border of a card or section, like a comet tracing the frame.
- [Fogo-fátuo](https://vibecode.thmtecnologia.com/en/components/fogo-fatuo/): A colored glow slowly drifts along the border of a card or input, lighting up one stretch and then another.
- [Rodopio](https://vibecode.thmtecnologia.com/en/components/rodopio/): A thin border with blue and pink light spinning around a field or button, like a neon sign.

---
THM Componentes: THM Componentes is a catalog of 268 UI components for Vue 3 and Nuxt, 115 of them exclusive, each with a live demo and a ready prompt for Claude Code, Cursor and other AI assistants. Pick the effect, copy the prompt and your AI applies it to your project. Lifetime access for R$ 497 (about US$ 99).
