Glowing Orb 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>Glowing Orb 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: #222; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; font-family: Arial, sans-serif; } .glowing-orb-div { position: relative; background: #444; 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; animation: glow 1s ease-in-out infinite alternate; } @keyframes glow { from { box-shadow: 0 0 10px #6e8efb, 0 0 20px #6e8efb, 0 0 30px #6e8efb; } to { box-shadow: 0 0 20px #a777e3, 0 0 30px #a777e3, 0 0 40px #a777e3; } } .glowing-orb-div h1 { font-size: 1.5em; margin: 0; } .glowing-orb-div p { font-size: 1em; margin-top: 10px; } .icon { font-size: 2em; margin-top: 20px; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } } </style> </head> <body> <div class="glowing-orb-div"> <h1>Glowing Orb Div</h1> <p>Bright and pulsating.</p> <div class="icon"> <i class="fas fa-lightbulb"></i> 💡 </div> </div> </body> </html>