Futuristic Iframe - 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>Futuristic Iframe</title> <style> body { font-family: 'Lucida Console', Monaco, monospace; background: #2d2d2d; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .iframe-container-futuristic { width: 65%; height: 65%; position: relative; box-shadow: 0 4px 20px rgba(0, 255, 255, 0.5); border-radius: 10px; overflow: hidden; background: #333; transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; } .iframe-container-futuristic:hover { transform: scale(1.05); box-shadow: 0 8px 40px rgba(0, 255, 255, 0.8); } .iframe-header-futuristic { position: absolute; top: 0; width: 100%; height: 40px; background: #222; color: #0ff; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 18px; } .iframe-header-futuristic .title { display: flex; align-items: center; } .iframe-header-futuristic .title span { margin-right: 10px; } .iframe-header-futuristic .icons { display: flex; align-items: center; } .iframe-header-futuristic .icons i { margin: 0 5px; cursor: pointer; transition: color 0.3s; } .iframe-header-futuristic .icons i:hover { color: #0ff; } .iframe-content-futuristic { width: 100%; height: calc(100% - 40px); } .iframe-container-futuristic iframe { width: 100%; height: 100%; border: none; } @keyframes glow { 0% { box-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #0ff; } 100% { box-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #0ff, 0 0 80px #0ff, 0 0 100px #0ff; } } .iframe-header-futuristic .icons .emoji { margin-right: 20px; animation: glow 1.5s infinite alternate; } </style> </head> <body> <div class="iframe-container-futuristic"> <div class="iframe-header-futuristic"> <div class="title"> <span>👽</span> <span>Futuristic Iframe</span> </div> <div class="icons"> <i class="fas fa-expand"></i> <i class="fas fa-sync"></i> <i class="fas fa-times"></i> <span class="emoji">💫</span> </div> </div> <div class="iframe-content-futuristic"> <iframe src="https://example.com" title="Iframe"></iframe> </div> </div> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> <script> document.querySelector('.fa-expand').addEventListener('click', function() { const iframeContainer = document.querySelector('.iframe-container-futuristic'); iframeContainer.style.position = 'fixed'; iframeContainer.style.top = '0'; iframeContainer.style.left = '0'; iframeContainer.style.width = '100%'; iframeContainer.style.height = '100%'; iframeContainer.style.zIndex = '1000'; }); document.querySelector('.fa-sync').addEventListener('click', function() { document.querySelector('.iframe-content-futuristic iframe').contentWindow.location.reload(); }); document.querySelector('.fa-times').addEventListener('click', function() { document.querySelector('.iframe-container-futuristic').style.display = 'none'; }); </script> </body> </html>