Unique Product Card - MeggiTools
Run
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>Unique Product Card</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f5f5f5; font-family: 'Arial', sans-serif; } .product-card { position: relative; width: 300px; padding: 20px; background: #ffffff; border-radius: 15px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); overflow: hidden; transition: transform 0.5s; } .product-card:hover { transform: translateY(-10px) scale(1.05); } .product-card::before, .product-card::after { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, #ff4a4a, #ff9a9a); transition: transform 0.5s; z-index: -1; } .product-card::after { background: linear-gradient(45deg, #4aff4a, #9aff9a); } .product-card:hover::before { transform: rotate(45deg); } .product-card:hover::after { transform: rotate(-45deg); } .product-image { width: 100%; border-radius: 15px; overflow: hidden; } .product-image img { width: 100%; display: block; border-radius: 15px; transition: transform 0.5s; } .product-card:hover .product-image img { transform: scale(1.1); } .product-details { padding: 15px 0; } .product-title { font-size: 1.5em; margin: 0; color: #333; display: flex; align-items: center; } .product-title span { margin-left: 10px; } .product-price { font-size: 1.2em; color: #ff4a4a; margin: 10px 0; } .product-description { font-size: 0.9em; color: #777; line-height: 1.5; } .product-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; } .product-actions button { border: none; background: #ff4a4a; color: white; padding: 10px 15px; border-radius: 50px; cursor: pointer; transition: background 0.3s; } .product-actions button:hover { background: #ff1a1a; } .product-icons { display: flex; gap: 10px; font-size: 1.2em; } .product-icons i { cursor: pointer; transition: color 0.3s; } .product-icons i:hover { color: #ff4a4a; } </style> </head> <body> <div class="product-card"> <div class="product-image"> <img src="https://via.placeholder.com/300x200" alt="Product Image"> </div> <div class="product-details"> <h2 class="product-title">Awesome Product <span>🔥</span></h2> <p class="product-price">$99.99</p> <p class="product-description">This is a brief description of the product. It is amazing, highly functional, and aesthetically pleasing. You'll love it!</p> </div> <div class="product-actions"> <button>Add to Cart</button> <div class="product-icons"> <i class="fas fa-heart"></i> <i class="fas fa-share-alt"></i> <i class="fas fa-info-circle"></i> </div> </div> </div> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> </body> </html>