Neon Frame Div - 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 Frame Div</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <style> body { background: #000; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; font-family: Arial, sans-serif; } .neon-frame-div { position: relative; background: #111; border-radius: 20px; padding: 20px; width: 300px; height: 200px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); color: #fff; text-align: center; border: 2px solid transparent; border-image: linear-gradient(45deg, #ff6ec4, #7873f5) 1; animation: neon-border 2s infinite alternate; } @keyframes neon-border { from { border-image: linear-gradient(45deg, #ff6ec4, #7873f5) 1; } to { border-image: linear-gradient(45deg, #7873f5, #ff6ec4) 1; } } .neon-frame-div h1 { font-size: 1.5em; margin: 0; } .neon-frame-div p { font-size: 1em; margin-top: 10px; } .icon { font-size: 2em; margin-top: 20px; animation: neon-icon 1s infinite alternate; } @keyframes neon-icon { from { color: #ff6ec4; } to { color: #7873f5; } } </style> </head> <body> <div class="neon-frame-div"> <h1>Neon Frame Div</h1> <p>Vibrant and eye-catching.</p> <div class="icon"> <i class="fas fa-bolt"></i> ⚡ </div> </div> </body> </html>