Social Media Icons Hover - 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"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <title>Social Media Icons Hover</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); margin: 0; font-family: Arial, sans-serif; } .social-icons { display: flex; gap: 20px; } .social-icons a { position: relative; display: flex; justify-content: center; align-items: center; width: 80px; height: 80px; background: #fff; border-radius: 50%; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); text-decoration: none; color: #333; font-size: 2em; transition: transform 0.3s, box-shadow 0.3s; } .social-icons a:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); } .social-icons a::before { content: attr(data-emoji); position: absolute; top: -10px; right: -10px; background: #fff; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 1.5em; transition: transform 0.3s; } .social-icons a:hover::before { transform: rotate(360deg); } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } } .social-icons a:hover::after { content: ''; position: absolute; bottom: -20px; width: 80px; height: 10px; background: rgba(0, 0, 0, 0.1); border-radius: 50%; animation: bounce 0.5s infinite; } </style> </head> <body> <div class="social-icons"> <a href="#" data-emoji="👍" title="Facebook"> <i class="fa fa-facebook-f"></i> </a> <a href="#" data-emoji="🐦" title="Twitter"> <i class="fa fa-twitter"></i> </a> <a href="#" data-emoji="📸" title="Instagram"> <i class="fa fa-instagram"></i> </a> <a href="#" data-emoji="🎥" title="YouTube"> <i class="fa fa-youtube"></i> </a> </div> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> </body> </html>