vibran

Credit card form

Also called: flip card on CVV

A card form with a 3D card beside it: digits appear on the card as you type, the brand is detected and recolors the card, and focusing the security code flips it to show the back. Checks the number and expiry.

Preview of Credit card form running live
Copy the promptAdjust colors and speed

When to use it

Checkout and subscriptions. Use the look and hand the data to a payment provider (Stripe, Mercado Pago, Pagar.me): never store or send raw card numbers through your own server. Type 4 for Visa, 5 for Mastercard, 636368 for Elo, 34 for Amex. Listen for the cartao-ok event to enable the pay button.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<div data-efeito="cartao-credito"></div>

More inputs effects

All 14 inputs effects →