Modern Futuristic Tabs - 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>Modern Futuristic Tabs</title> <style> body { font-family: 'Arial', sans-serif; background-color: #1e1e1e; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; color: white; } .tabs-container { background: #2e2e2e; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); border-radius: 12px; overflow: hidden; width: 80%; max-width: 800px; } .tab-header { display: flex; justify-content: space-around; background-color: #00796b; color: white; } .tab-header div { flex: 1; padding: 15px 0; text-align: center; cursor: pointer; transition: background-color 0.3s, color 0.3s; position: relative; } .tab-header div:hover { background-color: #004d40; } .tab-header .active { background-color: #004d40; color: #ffeb3b; } .tab-header .active::after { content: '⬇'; font-size: 20px; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); } .tab-content { display: none; padding: 20px; animation: fadeIn 0.5s ease-in-out; } .tab-content.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } </style> </head> <body> <div class="tabs-container"> <div class="tab-header"> <div class="active" onclick="openTab(event, 'futuristic-dashboard')">📊 Dashboard</div> <div onclick="openTab(event, 'futuristic-settings')">⚙️ Settings</div> <div onclick="openTab(event, 'futuristic-profile')">👤 Profile</div> </div> <div class="tab-content active" id="futuristic-dashboard"> <h2>📊 Dashboard</h2> <p>View your real-time statistics and data on the dashboard.</p> </div> <div class="tab-content" id="futuristic-settings"> <h2>⚙️ Settings</h2> <p>Customize your experience and change your settings here.</p> </div> <div class="tab-content" id="futuristic-profile"> <h2>👤 Profile</h2> <p>Update your personal information and view your profile.</p> </div> </div> <script> function openTab(event, tabId) { const tabHeaders = document.querySelectorAll('.tab-header div'); const tabContents = document.querySelectorAll('.tab-content'); tabHeaders.forEach(header => { header.classList.remove('active'); }); tabContents.forEach(content => { content.classList.remove('active'); }); event.currentTarget.classList.add('active'); document.getElementById(tabId).classList.add('active'); } </script> </body> </html>