Neon 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>Neon Iframe</title> <style> body { font-family: 'Courier New', Courier, monospace; background: #000; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .iframe-container-neon { width: 75%; height: 75%; position: relative; box-shadow: 0 0 20px rgba(0, 255, 255, 0.7); border-radius: 10px; overflow: hidden; background: #111; transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; } .iframe-container-neon:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 255, 255, 1); } .iframe-header-neon { position: absolute; top: 0; width: 100%; height: 50px; background: rgba(0, 255, 255, 0.3); color: #00ffff; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 20px; } .iframe-header-neon .title { display: flex; align-items: center; } .iframe-header-neon .title span { margin-right: 10px; } .iframe-header-neon .icons { display: flex; align-items: center; } .iframe-header-neon .icons i { margin: 0 5px; cursor: pointer; transition: color 0.3s; } .iframe-header-neon .icons i:hover { color: #ff0; } .iframe-content-neon { width: 100%; height: calc(100% - 50px); } .iframe-container-neon iframe { width: 100%; height: 100%; border: none; } @keyframes flicker { 0% { opacity: 1; } 50% { opacity: 0.8; } 100% { opacity: 1; } } .iframe-header-neon .icons .emoji { margin-right: 20px; animation: flicker 1.5s infinite; } </style> </head> <body> <div class="iframe-container-neon"> <div class="iframe-header-neon"> <div class="title"> <span>💡</span> <span>Neon 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-neon"> <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-neon'); 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-neon iframe').contentWindow.location.reload(); }); document.querySelector('.fa-times').addEventListener('click', function() { document.querySelector('.iframe-container-neon').style.display = 'none'; }); </script> </body> </html>