Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Card whose text is replaced on hover v1.0.0

Use this resource to reveal a second text by hovering over a card

New

  • 386 downloads
  • 170 likes
  • 224 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install text-swap-hover-card

First time: connect the CLI with

npx --yes palatekit@latest login

The agent adds a React (Tailwind) component to your project: a card whose text swaps on hover. You write the two texts and the card's look. You get a simple effect for a headline that hides a detail.

Mostly picked by

Updated November 2, 2026

Details

Generates with
Your agent's model
Uses
  • React
  • Tailwind CSS
Licence
MIT

Similar resources

View all

What you get

  • README.md: usage guide
  • swap-text-card.stories.tsx: the author's original file
  • swap-text-card.tsx: the author's original file
  • swap-text-card.mdx: the author's original file

Good fit for

  • Reveal a price or a detail on card hover
  • Show a name, then their role in a team
  • Make an offer card with a hidden message

Not for

  • A site without React or Tailwind CSS, without adapting it
  • A motion-sensitive audience, without adding prefers-reduced-motion

Tags

  • card
  • text
  • hover
  • swap
  • reveal

About

You say

"Add a card that shows 'Free' and changes to 'No commitment' on hover."

Card whose text is replaced by another when the pointer hovers over it.

Component published by SuminGurung9 under the MIT license, resource page and guide written by PalateKit.

Show more

Prerequisites

You bring
Your React project with Tailwind CSS and Your colors and texts
Dependencies
React and Tailwind CSS

How to use it

  1. Copy swap-text-card.tsx into your React project's components folder.
  2. Make sure Tailwind CSS is set up in the project.
  3. Ask the agent to place the component on the page and match it to your brand.

Content preview

Files

  • animata/card/swap-text-card.stories.tsx0.7 KB
  • animata/card/swap-text-card.tsx1.3 KB
  • content/docs/card/swap-text-card.mdx1 KB
  • LICENSE1.1 KB
  • NOTICE-PALATEKIT.md0.4 KB
  • README.md0.8 KB

Origin and licence

Modified by PalateKit

Author
SuminGurung9
Source
github.com/codse/animata/tree/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/card/swap-text-card.tsx
Licence
MIT

Notice

Version modifiée de « swap-text-card » (SuminGurung9, MIT) : traduction française et fiche par PalateKit.

User reviews

–

No ratings yet

Loading reviews…

Delete your review?

Your rating and comment will be removed from the page.

Frequently asked questions

Which packages do I install?

React and Tailwind CSS are enough.

Does it work without Next.js?

Yes, in any React project with Tailwind CSS; just drop the "use client" directive if your tooling does not support it.