Gradient Flow 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>Gradient Flow Product Card</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f5f5f5; font-family: 'Arial', sans-serif; } .gradient-flow { position: relative; width: 300px; padding: 20px; background: linear-gradient(120deg, #ff7e5f, #feb47b); border-radius: 15px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); overflow: hidden; transition: transform 0.5s; } .gradient-flow:hover { transform: translateY(-10px) scale(1.05); } .gradient-flow::before, .gradient-flow::after { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(120deg, #ff7e5f, #feb47b); transition: transform 0.5s; z-index: -1; } .gradient-flow::after { background: linear-gradient(120deg, #6a11cb, #2575fc); } .gradient-flow:hover::before { transform: rotate(45deg); } .gradient-flow:hover::after { transform: rotate(-45deg); } .gradient-flow .product-image img { width: 100%; border-radius: 15px; transition: transform 0.5s; } .gradient-flow:hover .product-image img { transform: scale(1.1); } .gradient-flow .product-title { font-size: 1.5em; color: #fff; display: flex; align-items: center; } .gradient-flow .product-title span { margin-left: 10px; } .gradient-flow .product-price { font-size: 1.2em; color: #ff7e5f; margin: 10px 0; } .gradient-flow .product-description { font-size: 0.9em; color: #fff; line-height: 1.5; } .gradient-flow .product-actions button { border: none; background: #ff7e5f; color: white; padding: 10px 15px; border-radius: 50px; cursor: pointer; transition: background 0.3s; } .gradient-flow .product-actions button:hover { background: #eb5e28; } .gradient-flow .product-icons i { color: #fff; transition: color 0.3s; } .gradient-flow .product-icons i:hover { color: #ff7e5f; } </style> </head> <body> <div class="product-card gradient-flow"> <div class="product-image"> <img src="https://via.placeholder.com/300x200" alt="Product Image"> </div> <div class="product-details"> <h2 class="product-title">Gradient Flow Product <span>🌈</span></h2> <p class="product-price">$109.99</p> <p class="product-description">A vibrant gradient flow effect that makes your product stand out in any display.</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>