Credit Card

credit-card-tw
1234567890123456
CARDHOLDERJOHN DOE
EXPIRES12/25
CVV123

Customize

1.2
16px
1
1
1.05

Props

NameTypeDefaultDescription
cardNumberstring"1234 5678 9012 3456"Card number (will be automatically formatted with spaces)
cardholderNamestring"JOHN DOE"Name of the cardholder displayed on the card
expirationDatestring"12/25"Card expiration date in MM/YY format
cvvstring"123"CVV code (3 digits) shown on the back when card is flipped
cardLogostringundefinedURL for card company logo (Visa, Mastercard, etc.)
chipImagestringundefinedURL for card chip image (optional)
backgroundstringrandom gradientCSS gradient or color for card background
textColorstring"#ffffff"Color for all text on the card
hasTextShadowbooleantrueEnable text shadow on card number, name, and expiration date
scalenumber1.2Scale factor for card size (maintains aspect ratio)
rotationIntensitynumber1Multiplier for the 3D rotation effect intensity (0-2)
parallaxIntensitynumber1Multiplier for the parallax layer movement intensity (0-2)
scaleOnHovernumber1.05Scale factor applied when hovering over the card
showShinebooleantrueEnable or disable the dynamic shine gradient effect
showShadowbooleantrueEnable or disable the shadow effect
borderRadiusnumber16Border radius of the card in pixels
showActionButtonsbooleanfalseShow action buttons below card (eye to toggle visibility, copy to clipboard)
classNamestring""Additional CSS classes to apply to the wrapper
cardClassNamestring""Additional CSS classes to apply to the card element
buttonsClassNamestring""Additional CSS classes to apply to the action buttons container