123
user profile image

Wanted to work with some masking so made a payment form so, using vanilla JS and the imask.js library, made a fairly simply payment form that uses regex patterns to detect the credit card type as the user is inputting values and properly applies the relevant spacing associated with that brand. Also wanted to do a smidge of style flair so made a simple SVG card that changes as the user fills out the form.

Comments

  1. Very smooth and nice. I love the "signature" on the back, haha.

  2. its a lot svg's work,how should i do as a normal?

  3. Really good!!

  4. Clever!

  5. Pretty sweet. I would consider changing maxLength of security code depending on card type and show a different layout (security code on front) for Amex.

  6. This is amazing 👏🏼

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.
Loading...