REFERENCE
- Gallery page: https://magpui.com/en/i/calendar-that-celebrates-each-holiday-25c14b
- First frame (image): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/calendar-that-celebrates-each-holiday-25c14b/shot.jpg
- Clip (mp4): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/calendar-that-celebrates-each-holiday-25c14b/clip.mp4
- Original post: https://x.com/seanaiux/status/2120861668867776567 by @seanaiux
Before building, download the first frame and look at it. If ffmpeg is available, download the clip and extract frames (ffmpeg -i clip.mp4 -vf fps=2 frame-%02d.png), then study the motion frame by frame. Match what you see; the text below describes it, the frames are the truth.
BUILD: A compact month calendar card in dark glass where every holiday has its own living header. The card shows the month grid; when a holiday date is selected (or you navigate to a month that has one), the top of the card fills with a small ambient animation for that holiday and the title becomes its name: falling snow and a pale blue glow for Christmas Day, bursting fireworks with a warm gold glow for New Year's Eve, rising red-orange sky lanterns for Lunar New Year. A large soft colored light behind the card shifts to the holiday's color. It should feel calm, premium and a little magical.
DESIGN SYSTEM: Page background near-black #0a0b0d. Card about 340x420px, radius 24px, fill rgba(30,30,34,0.72) with backdrop blur 24px, 1px border rgba(255,255,255,0.08), large soft shadow. Behind the card a blurred radial glow about 500px wide at 35% opacity: teal #1f6f6a for a normal December, ice blue #3a5a8a for Christmas, amber #c8892a for New Year's Eve, red-orange #b8401f for Lunar New Year. Header: small uppercase monospace eyebrow 10px #8b8d93 (e.g. "THU · 31 DEC"), title in a clean sans 24px #f4f4f5 medium weight. Two round 28px ghost buttons top-right for previous and next. Weekday row in 10px uppercase monospace #6f7177; date numbers 15px #e7e7ea in a 7-column grid with about 44px cells; days outside the month at 30% opacity. Selected date: 32px circle filled with the holiday color plus a matching outer glow (#e7a33c for New Year, #e0533a for Lunar New Year, #9fb6d8 for Christmas). Holiday dates show a 3px dot under the number.
MOTION:
- Changing month: grid slides 12px and fades, 280ms, cubic-bezier(0.22, 1, 0.36, 1); title crossfades with a 6px vertical shift and 4px blur.
- Selecting a holiday: header scene fades in over 600ms; background glow animates its color over 900ms ease-in-out; selected circle scales 0.6 to 1 in 300ms with a slight overshoot cubic-bezier(0.34, 1.56, 0.64, 1).
- Christmas: 60-80 snow particles 1-3px, falling 20-40px per second with sideways sine drift, fading out at the grid top.
- New Year's Eve: a firework every 700-1200ms at random header positions, 40-60 sparks bursting radially in 900ms with gravity and fading trails in pink #ff6fa3 and gold #ffd27a.
- Lunar New Year: 10-14 glowing lanterns (8-14px, #ff9a4a core, soft halo) rising 10-20px per second with gentle sway and depth blur, smaller ones dimmer.
- Leaving a holiday: scene fades out over 400ms and the glow returns to the month color.
SECTIONS: Parts: ambient glow, glass card, animated header scene layer (masked to fade into the card around the title), eyebrow and title, nav buttons, weekday row, date grid. States: normal month, holiday selected, hover on date (background rgba(255,255,255,0.06) circle), keyboard focus (2px ring in the current accent), today marker.
IMPLEMENTATION: React with a single canvas 2D layer in the header for particles, one small particle system per holiday preset driven by requestAnimationFrame; Framer Motion for grid, title and glow transitions. Keep holidays in a data map (date, name, preset, accent color) so new ones are easy to add. Under prefers-reduced-motion show a static still of each scene and only fade colors. Calendar grid as a proper grid role with arrow-key navigation and aria-selected. Stop the canvas loop when the header scene is not visible.
ADAPT TO THE PROJECT: Reuse the project's existing design tokens, fonts and date-picker logic, map colors to the closest existing tokens, and never copy logos, brand names or imagery from the original; use placeholders.
SUCCESS CHECK:
- Selecting 31 December shows fireworks and a gold glow, 25 December shows snow, the Lunar New Year date shows rising lanterns.
- Month changes animate smoothly and the glow color always matches the selected holiday.
- Full keyboard navigation works and reduced motion shows still scenes.