Creative Services Card Section - 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>Creative Services Card Section</title> <style> /* General Styles */ body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #f5f7fa, #c3cfe2); margin: 0; display: flex; justify-content: center; align-items: center; background-attachment: fixed; } .card-section { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 20px; } .card { background: #fff; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); overflow: hidden; width: 300px; transform: scale(1); transition: transform 0.3s ease, box-shadow 0.3s ease; } .card:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(0,0,0,0.2); } .card-header { position: relative; height: 200px; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; justify-content: center; align-items: center; } .card-header::after { content: "⭐"; font-size: 50px; position: absolute; top: -25px; right: -25px; animation: rotate 5s infinite linear; } .card-header img { border-radius: 50%; border: 5px solid #fff; width: 100px; height: 100px; object-fit: cover; } .card-content { padding: 20px; text-align: center; } .card-content h3 { margin: 0 0 10px; color: #333; } .card-content p { color: #777; } .card-footer { display: flex; justify-content: space-around; padding: 10px 0; } .card-footer a { color: #667eea; text-decoration: none; font-size: 20px; transition: color 0.3s ease; } .card-footer a:hover { color: #764ba2; } @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Animations */ .slide-up { animation: slideUp 1s ease-out; } @keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } } </style> </head> <body> <div class="card-section"> <div class="card slide-up"> <div class="card-header"> <img src="https://via.placeholder.com/100" alt="Service Icon"> </div> <div class="card-content"> <h3>Web Design 💻</h3> <p>Create stunning and responsive websites.</p> </div> <div class="card-footer"> <a href="#">🔗</a> <a href="#">📧</a> </div> </div> <div class="card slide-up"> <div class="card-header"> <img src="https://via.placeholder.com/100" alt="Service Icon"> </div> <div class="card-content"> <h3>Graphic Design 🎨</h3> <p>Beautiful graphics for your brand.</p> </div> <div class="card-footer"> <a href="#">🔗</a> <a href="#">📧</a> </div> </div> <div class="card slide-up"> <div class="card-header"> <img src="https://via.placeholder.com/100" alt="Service Icon"> </div> <div class="card-content"> <h3>SEO Optimization 📈</h3> <p>Boost your site's visibility on search engines.</p> </div> <div class="card-footer"> <a href="#">🔗</a> <a href="#">📧</a> </div> </div> </div> <script> document.addEventListener('DOMContentLoaded', () => { const cards = document.querySelectorAll('.card'); cards.forEach((card, index) => { setTimeout(() => { card.classList.add('slide-up'); }, index * 200); }); }); </script> </body> </html>