Checkout Form - VexaX
Run Code
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Checkout Form - Animated CSS Payment</title> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap'); body { font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, #f06, #ff9a9e); display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .checkout-container { background: #fff; padding: 2rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); width: 400px; max-width: 100%; animation: fadeInUp 0.5s ease-in-out; } .checkout-header { text-align: center; margin-bottom: 1.5rem; } .checkout-header h1 { font-size: 2rem; margin: 0; color: #333; } .checkout-header p { color: #777; } .input-group { margin-bottom: 1rem; position: relative; } .input-group input { width: 91%; padding: 0.75rem 1rem; border: 2px solid #ddd; border-radius: 10px; transition: all 0.3s ease; } .input-group input:focus { border-color: #f06; box-shadow: 0 0 5px rgba(240, 96, 96, 0.5); outline: none; } .input-group input:focus + .icon { color: #f06; } .input-group .icon { position: absolute; top: 50%; left: 1rem; transform: translateY(-50%); color: #aaa; transition: all 0.3s ease; } .checkout-button { display: flex; justify-content: center; } .checkout-button button { background: linear-gradient(135deg, #f06, #ff9a9e); border: none; color: #fff; padding: 0.75rem 2rem; border-radius: 50px; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; z-index: 1; } .checkout-button button:before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.2); z-index: -1; transition: all 0.3s ease; } .checkout-button button:hover:before { opacity: 0; } .checkout-button button:active { transform: scale(0.98); } @keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } } </style> </head> <body> <div class="checkout-container"> <div class="checkout-header"> <h1>Checkout <span>🛒</span></h1> <p>Please fill in your payment details</p> </div> <form> <div class="input-group"> <input type="text" placeholder="Full Name" required> </div> <div class="input-group"> <input type="text" placeholder="Card Number" required> </div> <div class="input-group"> <input type="text" placeholder="MM/YY" required> </div> <div class="input-group"> <input type="password" placeholder="CVV" required> </div> <div class="checkout-button"> <button type="submit">Pay Now <span>💸</span></button> </div> </form> </div> </body> </html>