Professional Breadcrumb - 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 Breadcrumb</title> <style> body { font-family: 'Arial', sans-serif; background-color: #f4f4f9; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .breadcrumb { display: flex; list-style: none; padding: 0; margin: 0; background: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .breadcrumb li { position: relative; display: flex; align-items: center; padding: 10px 10px; background: #fff; transition: background 0.3s, transform 0.3s; } .breadcrumb li:hover { background: #f0f0f5; transform: translateY(-3px); } .breadcrumb li:not(:last-child):after { content: '>'; margin-left: 10px; color: #ccc; font-size: 14px; } .breadcrumb a { text-decoration: none; color: #333; font-weight: bold; display: flex; align-items: center; } .breadcrumb a span.icon { margin-right: 8px; font-size: 1.2em; } .breadcrumb a:hover { text-decoration: underline; } .tooltip { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 5px 10px; border-radius: 4px; opacity: 0; transition: opacity 0.3s; pointer-events: none; font-size: 0.9em; } .breadcrumb li:hover .tooltip { opacity: 1; } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } } .breadcrumb a .icon { animation: bounce 2s infinite; } </style> </head> <body> <ul class="breadcrumb"> <li> <a href="#"><span class="icon">🏠</span>Home</a> <div class="tooltip">Go to Home</div> </li> <li> <a href="#"><span class="icon">📂</span>Category</a> <div class="tooltip">View Category</div> </li> <li> <a href="#"><span class="icon">📄</span>Post</a> <div class="tooltip">Read Post</div> </li> </ul> <script> document.querySelectorAll('.breadcrumb li').forEach((li, index) => { li.addEventListener('mouseover', () => { const tooltip = li.querySelector('.tooltip'); tooltip.style.left = `${li.offsetWidth / 2}px`; }); }); </script> </body> </html>