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.

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
- 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.
- Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
- 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
- Star ratingreview stars
- Expanding search barBusca que se expande
- Glowing inputAI prompt box
- Line draw inputunderline input animation
- Floating label inputCampo com rótulo flutuante
- Tag inputchips input
- OTP inputverification code input
- Liquid toggle switchgooey switch