Glowing Effect Input - 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>Stylish Glowing Effect Input</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #111; font-family: 'Poppins', sans-serif; margin: 0; } .input-container { position: relative; width: 300px; } .input-container input { width: 100%; padding: 15px 20px; border: 2px solid #555; border-radius: 30px; outline: none; background: #222; color: #fff; font-size: 16px; transition: all 0.3s ease; margin-top: 10px; } .input-container input:focus { border-color: #08f; box-shadow: 0 0 15px rgba(0, 136, 255, 0.5); } .input-container .glow { position: absolute; left: 10%; transform: translateX(-50%); top: -30px; font-size: 24px; color: #08f; opacity: 0; transition: opacity 0.3s ease; } .input-container input:focus + .glow { opacity: 1; } </style> </head> <body> <div class="input-container"> <input type="text" required placeholder="Enter Text" /> <div class="glow">✨</div> </div> </body> </html>