Emoji Radio Buttons - 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>Emoji Radio Buttons</title> <style> body { font-family: 'Arial', sans-serif; background-color: #f5f5f5; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .radio-group { display: flex; flex-direction: column; gap: 15px; } .radio-container { display: flex; align-items: center; position: relative; cursor: pointer; } .radio-container input { position: absolute; opacity: 0; cursor: pointer; } .radio-checkmark { width: 25px; height: 25px; background-color: #ccc; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: background-color 0.3s, transform 0.3s; } .radio-checkmark::before { content: '😀'; font-size: 18px; opacity: 0; transition: opacity 0.3s; } .radio-container input:checked ~ .radio-checkmark { background-color: #ffcc00; transform: scale(1.2); } .radio-container input:checked ~ .radio-checkmark::before { opacity: 1; } .radio-label { margin-left: 10px; font-size: 18px; color: #333; } </style> </head> <body> <div class="radio-group"> <label class="radio-container"> <input type="radio" name="emoji-radio" checked> <span class="radio-checkmark"></span> <span class="radio-label">Emoji Option 1</span> </label> <label class="radio-container"> <input type="radio" name="emoji-radio"> <span class="radio-checkmark"></span> <span class="radio-label">Emoji Option 2</span> </label> <label class="radio-container"> <input type="radio" name="emoji-radio"> <span class="radio-checkmark"></span> <span class="radio-label">Emoji Option 3</span> </label> </div> </body> </html>