Neon Flatpickr - 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>Neon Flatpickr</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.9/flatpickr.min.css"> <style> .neon-flatpickr { font-family: 'Verdana', sans-serif; padding: 10px; font-size: 1.2em; width: 100%; max-width: 300px; border: 2px solid #FF00FF; border-radius: 5px; box-shadow: 0 5px 15px rgba(255, 0, 255, 0.5); transition: all 0.3s ease; margin-left: 40%; margin-top: 200px; } .neon-flatpickr:focus { outline: none; border-color: #00FFFF; box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); } .flatpickr-calendar { font-family: 'Verdana', sans-serif; border-radius: 10px; box-shadow: 0 10px 25px rgba(0, 255, 255, 0.5); overflow: hidden; width: 330px; } .flatpickr-months { background: linear-gradient(45deg, #FF00FF 0%, #00FFFF 100%); color: #fff; padding: 10px; } .flatpickr-days { background: #1e1e1e; padding: 10px; } .flatpickr-day { width: 40px; height: 40px; line-height: 40px; margin: 5px; color: #fff; transition: all 0.2s ease; } .flatpickr-day:hover { background: #00FFFF; color: #000; transform: scale(1.1); } .flatpickr-day.today { background: #FF00FF; color: #fff; } .flatpickr-day.selected { background: #FFD700; color: #000; border-radius: 50%; } .flatpickr-weekday { font-weight: bold; color: #FF00FF; } @keyframes pulse { from { transform: scale(1); } to { transform: scale(1.1); } } .flatpickr-calendar { animation: pulse 0.3s ease; } .flatpickr-prev-month svg, .flatpickr-next-month svg { fill: #fff; } .flatpickr-prev-month::before, .flatpickr-next-month::before { content: "✨"; margin-right: 5px; } </style> </head> <body> <input type="text" id="datepicker-neon" class="neon-flatpickr" placeholder="Pick a date"> <script src="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.9/flatpickr.min.js"></script> <script> document.addEventListener('DOMContentLoaded', function() { flatpickr("#datepicker-neon", { dateFormat: "Y-m-d", disableMobile: "true", onReady: function(selectedDates, dateStr, instance) { instance.calendarContainer.classList.add('animated', 'pulse'); } }); }); </script> </body> </html>