Gothic Menu - 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>Gothic Menu</title> <style> body { font-family: 'Times New Roman', serif; background-color: #2f4f4f; color: white; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .gothic-dropdown { position: relative; display: inline-block; } .gothic-dropdown-toggle { background-color: #483d8b; color: white; padding: 12px 24px; font-size: 16px; border: none; border-radius: 8px; cursor: pointer; display: flex; align-items: center; transition: background-color 0.3s ease; box-shadow: 0 0 10px #483d8b, 0 0 20px #483d8b, 0 0 30px #483d8b; } .gothic-dropdown-toggle:hover { background-color: #4b0082; } .gothic-dropdown-toggle .icon { margin-left: 10px; transition: transform 0.3s ease; } .gothic-dropdown-toggle .icon.rotate { transform: rotate(180deg); } .gothic-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: #1a1a1a; border: 1px solid #483d8b; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-radius: 8px; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; max-height: 0; opacity: 0; z-index: 1000; } .gothic-dropdown-menu.show { display: block; max-height: 400px; opacity: 1; } .gothic-dropdown-menu-item { padding: 12px 24px; display: flex; align-items: center; transition: background-color 0.3s ease; cursor: pointer; } .gothic-dropdown-menu-item:hover { background-color: #333333; } .gothic-dropdown-menu-item .icon { margin-right: 10px; font-size: 18px; } .gothic-dropdown-menu-item .text { font-size: 16px; } .gothic-dropdown-menu-item .emoji { margin-left: auto; font-size: 20px; } </style> </head> <body> <div class="gothic-dropdown"> <button class="gothic-dropdown-toggle"> Gothic Menu <span class="icon">▼</span> </button> <div class="gothic-dropdown-menu"> <div class="gothic-dropdown-menu-item"> <span class="icon">🏠</span> <span class="text">Home</span> <span class="emoji">🏰</span> </div> <div class="gothic-dropdown-menu-item"> <span class="icon">🔍</span> <span class="text">Search</span> <span class="emoji">🕯️</span> </div> <div class="gothic-dropdown-menu-item"> <span class="icon">📧</span> <span class="text">Contact</span> <span class="emoji">📜</span> </div> <div class="gothic-dropdown-menu-item"> <span class="icon">⚙️</span> <span class="text">Settings</span> <span class="emoji">🗝️</span> </div> </div> </div> <script> document.querySelector('.gothic-dropdown-toggle').addEventListener('click', function() { const dropdownMenu = document.querySelector('.gothic-dropdown-menu'); const dropdownIcon = document.querySelector('.gothic-dropdown-toggle .icon'); dropdownMenu.classList.toggle('show'); dropdownIcon.classList.toggle('rotate'); }); document.addEventListener('click', function(event) { const dropdown = document.querySelector('.gothic-dropdown'); const dropdownMenu = document.querySelector('.gothic-dropdown-menu'); const dropdownIcon = document.querySelector('.gothic-dropdown-toggle .icon'); if (!dropdown.contains(event.target)) { dropdownMenu.classList.remove('show'); dropdownIcon.classList.remove('rotate'); } }); </script> </body> </html>