Mystic 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>Mystic Flatpickr</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.9/flatpickr.min.css"> <style> .mystic-flatpickr { font-family: 'Courier New', monospace; padding: 10px; font-size: 1.2em; width: 100%; max-width: 300px; border: 2px solid #8A2BE2; border-radius: 5px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; margin-left: 40%; margin-top: 200px; } .mystic-flatpickr:focus { outline: none; border-color: #9370DB; box-shadow: 0 0 10px rgba(147, 112, 219, 0.5); } .flatpickr-calendar { font-family: 'Courier New', monospace; border-radius: 10px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); overflow: hidden; width: 330px; } .flatpickr-months { background: linear-gradient(45deg, #8A2BE2 0%, #9370DB 100%); color: #fff; padding: 10px; } .flatpickr-days { background: #f0f0f0; padding: 10px; } .flatpickr-day { width: 40px; height: 40px; line-height: 40px; margin: 5px; transition: all 0.2s ease; } .flatpickr-day:hover { background: #9370DB; color: #fff; transform: scale(1.1); } .flatpickr-day.today { background: #8A2BE2; color: #fff; } .flatpickr-day.selected { background: #FF69B4; color: #fff; border-radius: 50%; } .flatpickr-weekday { font-weight: bold; color: #8A2BE2; } @keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } } .flatpickr-calendar { animation: slideIn 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-mystic" class="mystic-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-mystic", { dateFormat: "Y-m-d", disableMobile: "true", onReady: function(selectedDates, dateStr, instance) { instance.calendarContainer.classList.add('animated', 'slideIn'); } }); }); </script> </body> </html>