Pulse Animation Hover Effect - 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>Pulse Animation Hover Effect</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #f2f2f2; margin: 0; font-family: Arial, sans-serif; } .hover-card { width: 300px; height: 200px; background: #6200ea; border-radius: 15px; color: #fff; text-align: center; position: relative; overflow: hidden; } .hover-card:hover::before { content: ''; position: absolute; top: 50%; left: 50%; width: 300%; height: 300%; background: rgba(255, 255, 255, 0.1); border-radius: 50%; transform: translate(-50%, -50%); animation: pulse 1.5s infinite; } @keyframes pulse { 0% { width: 0; height: 0; opacity: 0.7; } 100% { width: 300%; height: 300%; opacity: 0; } } .hover-card .content { padding: 20px; position: relative; z-index: 1; } .hover-card .content h2 { margin: 0; font-size: 2em; } .hover-card .content p { margin: 10px 0 0; font-size: 1.2em; } </style> </head> <body> <div class="hover-card"> <div class="content"> <h2>Pulse Animation</h2> <p>Hover over me!</p> </div> </div> </body> </html>