Professional Tooltip - 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 Tooltip</title> <style> body { font-family: 'Arial', sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(to right, #ff7e5f, #feb47b); margin: 0; } .tooltip-container { position: relative; display: inline-block; } .tooltip-container .tooltip { visibility: hidden; width: 200px; background: rgba(0, 0, 0, 0.8); color: #fff; text-align: center; border-radius: 10px; padding: 10px; position: absolute; z-index: 1; bottom: 125%; left: 50%; transform: translateX(-50%); box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2); opacity: 0; transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; font-size: 14px; } .tooltip-container .tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -10px; border-width: 10px; border-style: solid; border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent; } .tooltip-container:hover .tooltip { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(-10px); } .tooltip-content { display: flex; align-items: center; justify-content: center; } .tooltip-content .emoji { font-size: 20px; margin-right: 8px; } .tooltip-content .icon { font-size: 20px; margin-right: 8px; } .tooltip-content .text { text-align: left; } .tooltip-content .text h4 { margin: 0; font-size: 16px; color: #ffd700; } .tooltip-content .text p { margin: 5px 0 0; } /* Animation */ @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } } .tooltip-container:hover .tooltip { animation: bounce 1s infinite; } .hover-me-btn{ width: 150px; height: 45px; border: none; outline: none; background: rgba(0, 0, 0, 0.8); color: #fff; text-align: center; border-radius: 10px; } </style> </head> <body> <div class="tooltip-container"> <button type="button" class="hover-me-btn">Hover me!</button> <div class="tooltip"> <div class="tooltip-content"> <span class="emoji">🔥</span> <span class="icon">🔍</span> <div class="text"> <h4>Amazing Tooltip</h4> <p>This is a highly attractive tooltip!</p> </div> </div> </div> </div> </body> </html>