Skip to content

Launch Countdown Card

Bootstrap 5 countdown card for product launches with a reminder button.

Also known as: product launch countdown, release countdown timer, launch date countdown card, countdown with reminder button

Launch Countdown Card live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A Bootstrap 5 launch countdown card with a version badge, headline, four live time boxes and a "Remind me" toggle button. It is made for product release announcements, feature launches, beta openings and event teasers.

How it works

The root is section.card.lc-launch, a borderless shadowed card limited to 560px and centered with mx-auto. Inside the card-body are a badge with a rocket icon, the #lc-title heading, a short description, a Bootstrap row of four col-3 columns and the .lc-remind button. Each column holds an .lc-box tile (tinted with var(--bs-tertiary-bg)) and an .lc-num element with a data-part attribute of d, h, m or s. The digits use var(--bs-primary), tabular-nums and a fluid clamp() font size.

On DOMContentLoaded the script initializes each .lc-launch. It reads an absolute date from data-launch; if it is missing or invalid it uses data-launch-days counted from page load, with 7 days as the default. A tick() function runs every second and writes zero-padded values into the data-part elements, and stops the interval at zero. The .lc-remind button listens for clicks and toggles aria-pressed, swaps btn-primary for btn-success, changes its text to "Reminder set" and replaces the bi-bell icon with bi-check2.

Customization

  • data-launch on .lc-launch: add a real release time in ISO 8601, e.g. 2026-12-01T09:00:00Z; it overrides the demo value.
  • data-launch-days="12" on .lc-launch: change the demo duration or remove it once data-launch is set.
  • color: var(--bs-primary) in .lc-launch .lc-num: set another color for the digits.
  • background: var(--bs-tertiary-bg) in .lc-launch .lc-box: change the tile background, e.g. var(--bs-primary-bg-subtle).
  • max-width: 560px in .lc-launch: widen the card for a hero section.
  • bg-primary-subtle text-primary-emphasis on the badge: use another Bootstrap color pair and edit the "Version 2.0" text.
  • The btn-success class and "Reminder set" text in the .lc-remind click handler: change the confirmed state, or call your own subscribe endpoint there.

Use cases

  • Product release announcements: a version badge and live time boxes count down to launch day
  • Feature launches: visitors tap Remind me to confirm they want a notification
  • Beta openings: the card tells users how many days remain until access begins
  • Event teasers: a centered card works in a hero section before an event starts

Accessibility

The card is a section labelled by its heading through aria-labelledby="lc-title". The row of digits is aria-hidden="true" so the per-second updates are not read aloud. Instead a visually-hidden paragraph with data-part="summary" and aria-live="polite" is updated once per minute ("Launching in 12 days, 3 hours and 5 minutes.") and says "We have launched!" at zero. The remind button is a toggle with aria-pressed, and its visible text changes too, so the state is clear without color. All icons are aria-hidden. Bootstrap's default focus ring is kept.

Usage notes

Requires Bootstrap 5 (added automatically) and Bootstrap Icons. Several cards can run on one page; give each a unique heading id. The timer relies on the visitor's clock, so prefer a UTC value in data-launch.

Launch Countdown Card at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile
Category
Countdown Timers
License
Free for personal and commercial use

Questions about this template

Can I use the Launch Countdown Card code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Launch Countdown Card – free Bootstrap 5 countdown timer template
Launch Countdown Card · free Bootstrap 5 countdown timer template

More Countdown Timers

Circular Countdown Timer – free Pure CSS countdown timer template

Circular Countdown Timer

Countdown timer with glowing SVG rings for days, hours, minutes and seconds that shrink as time runs out. Pure CSS with a small vanilla JS file.

Countdown Sale Banner for Shopify – free Shopify countdown timer template

Countdown Sale Banner for Shopify

A Shopify section that counts down to one fixed end date, as a full banner or slim bar, with an optional discount code to copy and a clean ended state.

Flip Countdown – free Tailwind CSS countdown timer template

Flip Countdown

Tailwind CSS flip-clock countdown timer with 3D split-flap cards for days, hours, minutes and seconds, reduced-motion support and a completion event.

Countdown Timer Cards – free Pure CSS countdown timer template

Countdown Timer Cards

Pure CSS countdown with days, hours, minutes and seconds in flip-style cards.