Color Flip 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>Color Flip Hover Effect</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #ececec; margin: 0; font-family: Arial, sans-serif; } .hover-card { width: 300px; height: 200px; background: linear-gradient(45deg, #ff6a00, #ee0979); border-radius: 15px; color: #fff; text-align: center; transition: background 0.5s; } .hover-card:hover { background: linear-gradient(45deg, #00c6ff, #0072ff); } .hover-card .content { padding: 20px; } .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>Color Flip</h2> <p>Hover over me!</p> </div> </div> </body> </html>