Minimalist 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>Minimalist User Avatars</title> <style> body { font-family: Arial, sans-serif; background-color: #e0f7fa; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .avatar-container { display: flex; gap: 20px; } .avatar { position: relative; width: 120px; height: 120px; border-radius: 50%; background-color: #ffffff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); display: flex; justify-content: center; align-items: center; transition: transform 0.3s ease; } .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; } .avatar .name { position: absolute; bottom: -20px; background: #00796b; color: white; padding: 5px 10px; border-radius: 20px; font-size: 14px; font-weight: bold; opacity: 0; transition: opacity 0.3s ease; } .avatar:hover { transform: scale(1.1); } .avatar:hover .name { opacity: 1; } </style> </head> <body> <div class="avatar-container"> <div class="avatar"> <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar"> <div class="name">Alex Johnson</div> </div> <div class="avatar"> <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User Avatar"> <div class="name">Emily Davis</div> </div> </div> </body> </html>