StealThis .dev

Wedding — Countdown Hero

An editorial save-the-date hero pairing a serif monogram with the couple names, ceremony date and venue, and a live days-hours-minutes-seconds countdown that ticks in real time. Blush-and-gold styling, thin gold rules, and an add-to-calendar button that downloads a ready-made .ics invite make it a romantic, self-contained opener for any wedding microsite or invitation landing page.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

A romantic save-the-date hero built for a wedding microsite. A serif monogram and the couple’s names sit above a thin gold rule, followed by the full ceremony date and venue line. The centerpiece is a live countdown that splits the time remaining into days, hours, minutes, and seconds, each value animating gently as it flips over so the page always feels alive.

The countdown recalculates every second in vanilla JavaScript against a fixed target date. When the moment finally arrives, the four cards gracefully collapse into a single celebratory message. Each digit change triggers a subtle scale pulse, and the whole layout is centered over a soft blush gradient backdrop with floating petal accents.

The add-to-calendar button generates a standards-compliant .ics file on the fly and downloads it, so guests can drop the event straight into Apple Calendar, Google Calendar, or Outlook. A lightweight toast confirms the action. Everything is keyboard-accessible with visible focus rings, contrast-checked for WCAG AA, and responsive down to about 360px.