Professional User Avatars - 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>Professional User Avatars</title> <style> body { font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background: #f0f0f0; margin: 0; } .avatar-container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; } .avatar { position: relative; width: 100px; height: 100px; border-radius: 50%; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; } .avatar img { width: 100%; height: 100%; object-fit: cover; } .avatar .info { position: absolute; bottom: -100%; left: 0; width: 100%; height: 30%; background: rgba(0, 0, 0, 0.7); color: white; display: flex; justify-content: center; align-items: center; transition: bottom 0.3s ease; } .avatar:hover .info { bottom: 0; } .avatar:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); } .avatar .icon { position: absolute; top: 10%; right: 10%; font-size: 20px; color: white; animation: bounce 2s infinite; } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } } </style> </head> <body> <div class="avatar-container"> <div class="avatar"> <img src="https://via.placeholder.com/100" alt="User Avatar"> <div class="info">User 1</div> </div> <div class="avatar"> <img src="https://via.placeholder.com/100" alt="User Avatar"> <div class="info">User 2</div> </div> <div class="avatar"> <img src="https://via.placeholder.com/100" alt="User Avatar"> <div class="info">User 3</div> </div> <div class="avatar"> <img src="https://via.placeholder.com/100" alt="User Avatar"> <div class="info">User 4</div> </div> </div> <script> document.querySelectorAll('.avatar').forEach(avatar => { avatar.addEventListener('mouseover', () => { avatar.style.transform = 'translateY(-10px)'; avatar.style.boxShadow = '0 8px 25px rgba(0, 0, 0, 0.2)'; }); avatar.addEventListener('mouseout', () => { avatar.style.transform = 'translateY(0)'; avatar.style.boxShadow = '0 5px 15px rgba(0, 0, 0, 0.1)'; }); }); </script> </body> </html>