Futuristic Radio Button - 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 Radio Button</title> <style> body { font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); color: #fff; } .radio-group { display: flex; gap: 20px; } .radio { display: none; } .radio-label { position: relative; display: flex; align-items: center; cursor: pointer; font-size: 18px; padding-left: 40px; transition: color 0.3s; } .radio-label:before, .radio-label:after { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; transition: background-color 0.3s, box-shadow 0.3s; } .radio-label:before { background: #0f0c29; box-shadow: inset 0 0 0 2px #fff; } .radio:checked + .radio-label:before { background: #1f4037; box-shadow: 0 0 10px #1f4037, 0 0 20px #1f4037, 0 0 30px #1f4037; } .radio:checked + .radio-label:after { content: '✓'; display: flex; justify-content: center; align-items: center; color: #fff; } .radio:checked + .radio-label { color: #1f4037; } </style> </head> <body> <div class="radio-group"> <input type="radio" id="futuristic1" name="futuristics" class="radio" checked> <label for="futuristic1" class="radio-label"> <span>Futuristic 1</span> </label> <input type="radio" id="futuristic2" name="futuristics" class="radio"> <label for="futuristic2" class="radio-label"> <span>Futuristic 2</span> </label> <input type="radio" id="futuristic3" name="futuristics" class="radio"> <label for="futuristic3" class="radio-label"> <span>Futuristic 3</span> </label> </div> </body> </html>