Scale 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>Scale Tooltip</title> <style> body { font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(to right, #00c6ff, #0072ff); } .tooltip-container { position: relative; display: inline-block; } .tooltip-icon { font-size: 2rem; cursor: pointer; transform-origin: center; } .tooltip-text { visibility: hidden; width: 220px; background: #fff; color: #333; text-align: center; border-radius: 10px; padding: 15px; position: absolute; z-index: 1; bottom: 125%; left: 50%; transform: scale(0.5) translateY(20px); opacity: 0; transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); } .tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; transform: scale(1) translateY(0); } .tooltip-arrow { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 10px; border-style: solid; border-color: #fff transparent transparent transparent; } </style> </head> <body> <div class="tooltip-container"> <span class="tooltip-icon">🔎</span> <div class="tooltip-text"> <p>Scale Animation Tooltip!</p> <div class="tooltip-arrow"></div> </div> </div> </body> </html>