Premium Card
Preview
Edit
Download
Run
Download Options
HTML File
Download as .html file
CSS File
Download as .css file
JavaScript File
Download as .js file
Combined HTML
All code in one HTML file
Project ZIP
All files in a ZIP archive
Cancel
HTML
<div class="card-container"> <div class="card"> <div class="card-header"> <img src="https://images.unsplash.com/photo-1522337360788-8b13dee7a37e" alt="Card Image"> <div class="overlay"></div> </div> <div class="card-body"> <h3 class="card-title">Premium Card Title</h3> <p class="card-description"> Discover the elegance of our premium card design, crafted for top-notch experiences. </p> <div class="card-footer"> <a href="#" class="card-button">Explore More</a> </div> </div> </div> </div>
CSS
/* General Styling */ body { margin: 0; font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, #1e1e2f, #3a3a5f); display: flex; justify-content: center; align-items: center; height: 100vh; color: #fff; } /* Card Container */ .card-container { display: flex; justify-content: center; align-items: center; } /* Card */ .card { background: #25253c; border-radius: 16px; overflow: hidden; width: 350px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: transform 0.4s ease, box-shadow 0.4s ease; position: relative; } .card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7); } /* Card Header */ .card-header { position: relative; height: 200px; overflow: hidden; } .card-header img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; } .card:hover .card-header img { transform: scale(1.1); } .card-header .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7)); opacity: 0.8; } /* Card Body */ .card-body { padding: 20px; text-align: center; } .card-title { font-size: 1.5rem; font-weight: 600; margin: 10px 0; color: #eaeaea; } .card-description { font-size: 1rem; line-height: 1.5; color: #bdbdbd; margin-bottom: 20px; } /* Card Footer */ .card-footer { display: flex; justify-content: center; } .card-button { padding: 12px 24px; background: linear-gradient(90deg, #ff8a00, #e52e71); color: #fff; border-radius: 25px; text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: background 0.4s ease, transform 0.3s ease; } .card-button:hover { background: linear-gradient(90deg, #e52e71, #ff8a00); transform: translateY(-4px); }
JavaScript
Output Preview
Desktop
Mobile
Fullscreen