Minimalist Soft Touch 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>Minimalist Soft Touch Radio Button</title> <style> body { margin: 0; font-family: Arial, sans-serif; background: linear-gradient(135deg, #f6f9fc, #e9eff1); display: flex; justify-content: center; align-items: center; height: 100vh; color: #333; } .radio-container { display: flex; flex-direction: column; gap: 15px; } .radio-label { display: flex; align-items: center; cursor: pointer; position: relative; padding: 12px 18px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: background 0.3s, transform 0.3s; } .radio-label:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.03); } .radio-label input[type="radio"] { display: none; } .radio-icon { width: 24px; height: 24px; margin-right: 10px; position: relative; transition: color 0.3s; color: #009688; } .radio-label input[type="radio"]:checked + .radio-icon::before { content: '✓'; /* Checkmark icon */ position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; color: #009688; font-size: 18px; transition: opacity 0.3s; } .radio-text { flex-grow: 1; transition: color 0.3s; } </style> </head> <body> <div class="radio-container"> <label class="radio-label"> <input type="radio" name="radio-group" id="radio1"> <span class="radio-icon"></span> <span class="radio-text">Option 1</span> </label> <label class="radio-label"> <input type="radio" name="radio-group" id="radio2"> <span class="radio-icon"></span> <span class="radio-text">Option 2</span> </label> <label class="radio-label"> <input type="radio" name="radio-group" id="radio3"> <span class="radio-icon"></span> <span class="radio-text">Option 3</span> </label> </div> </body> </html>