Bootstrap 5 Scrollable Vertical Timeline with Time
A scrollable vertical timeline card with a time column, colour-coded markers and short event descriptions.
<section class="wdw-stage">
<div class="container" style="max-width:560px">
<div class="wdw-card tl-card">
<div class="d-flex align-items-center justify-content-between p-4 pb-3">
<div>
<span class="wdw-eyebrow">Today</span>
<h2 class="h4 wdw-heading mb-0">User timeline</h2>
</div>
<span class="badge rounded-pill text-primary-emphasis bg-primary-subtle px-3 py-2">5 events</span>
</div>
<div class="tl-scroll px-4" tabindex="0" role="region" aria-label="Scrollable timeline">
<ol class="tl list-unstyled mb-0">
<li class="tl-item is-past">
<time class="tl-time small fw-semibold text-body-secondary">9:30 AM</time>
<span class="tl-mark" aria-hidden="true"><span class="tl-dot"></span></span>
<div class="tl-body small text-body-secondary"><span class="badge rounded-pill bg-body-secondary text-body-secondary mb-2">Call</span><h3 class="h6 fw-bold text-body-emphasis mb-1">Meeting with client</h3><p class="mb-0">Call with the USA client, today at <a href="#" class="fw-semibold">12:00 PM</a>.</p></div>
</li>
<li class="tl-item is-now" aria-current="true">
<time class="tl-time small fw-semibold text-primary">12:25 PM</time>
<span class="tl-mark" aria-hidden="true"><span class="tl-dot"></span></span>
<div class="tl-body small text-body-secondary"><span class="badge rounded-pill bg-primary text-bg-primary mb-2">Now</span> <span class="badge rounded-pill bg-body-secondary text-body-secondary mb-2">Meetings</span><h3 class="h6 fw-bold text-body-emphasis mb-1">Back-to-back meetings</h3><p class="mb-1">UK client meeting at <b class="fw-semibold text-body-emphasis">3:00 PM</b></p><p class="mb-0">Follow-up call at <b class="fw-semibold text-body-emphasis">5:00 PM</b></p></div>
</li>
<li class="tl-item">
<time class="tl-time small fw-semibold text-body-secondary">6:00 PM</time>
<span class="tl-mark" aria-hidden="true"><span class="tl-dot"></span></span>
<div class="tl-body small text-body-secondary"><span class="badge rounded-pill bg-body-secondary text-body-secondary mb-2">Team</span><h3 class="h6 fw-bold text-body-emphasis mb-1">Product launch sync</h3><p class="mb-0">Team discussion about the new product launch and upcoming features.</p></div>
</li>
<li class="tl-item">
<time class="tl-time small fw-semibold text-body-secondary">9:00 AM</time>
<span class="tl-mark" aria-hidden="true"><span class="tl-dot"></span></span>
<div class="tl-body small text-body-secondary"><span class="badge rounded-pill bg-body-secondary text-body-secondary mb-2">Marketing</span><h3 class="h6 fw-bold text-body-emphasis mb-1">Marketing check-in</h3><p class="mb-0">Review the popularity of last month's product with marketing.</p></div>
</li>
<li class="tl-item">
<time class="tl-time small fw-semibold text-body-secondary">10:30 PM</time>
<span class="tl-mark" aria-hidden="true"><span class="tl-dot"></span></span>
<div class="tl-body small text-body-secondary"><span class="badge rounded-pill bg-body-secondary text-body-secondary mb-2">Task</span><h3 class="h6 fw-bold text-body-emphasis mb-1">Purchase hosting plan</h3><p class="mb-0">Buy the hosting plan agreed with the development team.</p></div>
</li>
</ol>
</div>
</div>
</div>
</section>
/* Web Designer Wall library style — shared base for every Bootstrap 5 snippet.
Indigo accent, Plus Jakarta Sans, soft cards, pill buttons. Works in light and dark. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root,
[data-bs-theme="light"] {
--wdw-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--bs-body-font-family: var(--wdw-font);
--bs-primary: #4f46e5;
--bs-primary-rgb: 79, 70, 229;
--bs-primary-text-emphasis: #3730a3;
--bs-primary-bg-subtle: #eef2ff;
--bs-primary-border-subtle: #c7d2fe;
--bs-link-color: #4f46e5;
--bs-link-color-rgb: 79, 70, 229;
--bs-link-hover-color: #4338ca;
--bs-link-hover-color-rgb: 67, 56, 202;
--bs-focus-ring-color: rgba(79, 70, 229, 0.25);
--bs-border-radius: 0.75rem;
--bs-border-radius-lg: 1rem;
--bs-border-radius-xl: 1.25rem;
--wdw-radius-card: 1.25rem;
--wdw-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 16px 40px -16px rgba(16, 24, 40, 0.22);
--wdw-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 12px -4px rgba(16, 24, 40, 0.12);
--wdw-stage: #f5f6fb;
}
[data-bs-theme="dark"] {
--bs-primary: #818cf8;
--bs-primary-rgb: 129, 140, 248;
--bs-primary-text-emphasis: #c7d2fe;
--bs-primary-bg-subtle: rgba(129, 140, 248, 0.14);
--bs-primary-border-subtle: rgba(129, 140, 248, 0.35);
--bs-link-color: #a5b4fc;
--bs-link-color-rgb: 165, 180, 252;
--bs-link-hover-color: #c7d2fe;
--bs-link-hover-color-rgb: 199, 210, 254;
--bs-focus-ring-color: rgba(129, 140, 248, 0.35);
--wdw-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
--wdw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
--wdw-stage: #0f1117;
}
body { font-family: var(--wdw-font); -webkit-font-smoothing: antialiased; }
/* Bootstrap compiles its blue into these components; point them at the accent. */
.btn-primary {
--bs-btn-bg: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
--bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca;
--bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3;
--bs-btn-disabled-bg: var(--bs-primary); --bs-btn-disabled-border-color: var(--bs-primary);
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #0f1117; --bs-btn-hover-bg: #a5b4fc; --bs-btn-hover-border-color: #a5b4fc; --bs-btn-hover-color: #0f1117; --bs-btn-active-color: #0f1117; }
.btn-outline-primary {
--bs-btn-color: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
--bs-btn-hover-bg: var(--bs-primary); --bs-btn-hover-border-color: var(--bs-primary);
--bs-btn-active-bg: var(--bs-primary); --bs-btn-active-border-color: var(--bs-primary);
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
.btn { --bs-btn-font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-sm { min-height: 36px; }
.form-control, .form-select { min-height: 44px; border-radius: .75rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: rgba(var(--bs-primary-rgb), .6); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--bs-primary); }
.nav { --bs-nav-link-color: var(--bs-secondary-color); --bs-nav-link-hover-color: var(--bs-emphasis-color); }
.pagination { --bs-pagination-active-bg: var(--bs-primary); --bs-pagination-active-border-color: var(--bs-primary); --bs-pagination-color: var(--bs-body-color); --bs-pagination-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.progress, .progress-stacked { --bs-progress-bar-bg: var(--bs-primary); }
.list-group { --bs-list-group-active-bg: var(--bs-primary); --bs-list-group-active-border-color: var(--bs-primary); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--bs-primary); border-radius: .875rem; box-shadow: var(--wdw-shadow-sm); }
.accordion { --bs-accordion-active-bg: var(--bs-primary-bg-subtle); --bs-accordion-active-color: var(--bs-primary-text-emphasis); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.badge { font-weight: 600; }
/* Library building blocks — use these instead of re-inventing them per snippet. */
.wdw-stage { min-height: 100vh; display: flex; align-items: center; background: var(--wdw-stage); padding-block: 3rem; }
.wdw-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: var(--wdw-radius-card); box-shadow: var(--wdw-shadow); }
.wdw-card-sm { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: 1rem; box-shadow: var(--wdw-shadow-sm); }
.wdw-aurora { position: relative; color: #fff; background: radial-gradient(60% 55% at 100% 0, #818cf8 0, transparent 70%), radial-gradient(65% 60% at 0 100%, #ec4899 0, transparent 65%), #1e1b4b; }
.wdw-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-primary); }
.wdw-heading { font-weight: 800; letter-spacing: -.02em; color: var(--bs-emphasis-color); }
.wdw-muted { color: var(--bs-secondary-color); }
.wdw-icon { width: 2.75rem; height: 2.75rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: .875rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); }
/* Component */
.tl-card { overflow: hidden; }
.tl-scroll { max-height: 400px; overflow-y: auto; scrollbar-width: thin; padding-bottom: 2.5rem; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 3rem), transparent); }
.tl-item { display: grid; grid-template-columns: 4.25rem 1.25rem minmax(0, 1fr); column-gap: 1rem; }
.tl-time { text-align: right; padding-top: .1rem; }
.tl-mark { display: flex; flex-direction: column; align-items: center; }
.tl-mark::after { content: ""; flex: 1; width: 2px; margin-block: .25rem; background: var(--bs-border-color); }
.tl-item:last-child .tl-mark::after { visibility: hidden; }
.tl-dot { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; border-radius: 50%; background: var(--bs-body-bg); border: 2px solid var(--bs-border-color); }
.tl-item.is-past .tl-dot { border-color: var(--bs-primary); }
.tl-item.is-now .tl-dot { background: var(--bs-primary); border-color: var(--bs-primary); box-shadow: 0 0 0 .25rem var(--bs-primary-bg-subtle); }
.tl-body { padding-bottom: 1.5rem; }
.tl-body a { text-decoration: none; }
.tl-item.is-now .tl-body { border-radius: .75rem; }
@media (max-width: 420px) { .tl-item { grid-template-columns: 3.6rem 1.25rem minmax(0, 1fr); column-gap: .75rem; } }
<section class="tl-stage bg-1">
<div class="card tl-card">
<div class="card-header tl-head">
<h2 class="fs-md fw-semibold mb-0" id="tl-title">User timeline</h2>
<span class="badge theme-primary">Today</span>
</div>
<div class="tl-scroll" tabindex="0" role="region" aria-labelledby="tl-title">
<ol class="tl-list">
<li class="tl-item tl-success">
<time class="tl-time">9:30 AM</time>
<span class="tl-dot" aria-hidden="true"></span>
<div class="tl-body">
<h3 class="fs-sm fw-semibold mb-0">Meeting with client</h3>
<p class="fs-sm fg-secondary mb-0">Call with the USA client, scheduled today at <a href="#">12:00 PM</a>.</p>
</div>
</li>
<li class="tl-item tl-warning">
<time class="tl-time">12:25 PM</time>
<span class="tl-dot" aria-hidden="true"></span>
<div class="tl-body">
<p class="fs-sm fg-secondary mb-0">Another meeting with the UK client today at <b class="fg-danger">3:00 PM</b>. Yet another one at <span class="fg-success">5:00 PM</span>.</p>
</div>
</li>
<li class="tl-item tl-danger">
<time class="tl-time">6:00 PM</time>
<span class="tl-dot" aria-hidden="true"></span>
<div class="tl-body">
<h3 class="fs-sm fw-semibold mb-0">Product launch discussion</h3>
<p class="fs-sm fg-secondary mb-0">Walk the team through the launch plan for the new product and highlight the key features.</p>
</div>
</li>
<li class="tl-item tl-primary">
<time class="tl-time">9:00 AM</time>
<span class="tl-dot" aria-hidden="true"></span>
<div class="tl-body">
<h3 class="fs-sm fw-semibold mb-0">Marketing sync</h3>
<p class="fs-sm fg-secondary mb-0">Review how the last product has been received and what to repeat.</p>
</div>
</li>
<li class="tl-item tl-success">
<time class="tl-time">10:30 AM</time>
<span class="tl-dot" aria-hidden="true"></span>
<div class="tl-body">
<h3 class="fs-sm fw-semibold mb-0">Purchase new hosting plan</h3>
<p class="fs-sm fg-secondary mb-0">Buy the new hosting plan agreed with the development team, today at <a href="#">10:00 AM</a>.</p>
</div>
</li>
<li class="tl-item tl-warning">
<time class="tl-time">11:00 AM</time>
<span class="tl-dot" aria-hidden="true"></span>
<div class="tl-body">
<p class="fs-sm fg-secondary mb-0">Conference call today at <b class="fg-danger">11:00 AM</b>. A follow-up is booked for <span class="fg-success">1:00 PM</span>.</p>
</div>
</li>
<li class="tl-item tl-primary">
<time class="tl-time">2:15 PM</time>
<span class="tl-dot" aria-hidden="true"></span>
<div class="tl-body">
<h3 class="fs-sm fw-semibold mb-0">Design review</h3>
<p class="fs-sm fg-secondary mb-0">Go over the revised dashboard mockups and collect feedback before handoff.</p>
</div>
</li>
<li class="tl-item tl-success">
<time class="tl-time">4:45 PM</time>
<span class="tl-dot" aria-hidden="true"></span>
<div class="tl-body">
<h3 class="fs-sm fw-semibold mb-0">Weekly report sent</h3>
<p class="fs-sm fg-secondary mb-0">Summary of progress and next steps shared with all stakeholders.</p>
</div>
</li>
</ol>
</div>
</div>
</section>
.tl-stage { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.tl-card { width: 100%; max-width: 40rem; box-shadow: var(--bs-box-shadow-lg); }
.tl-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.tl-scroll { max-height: min(30rem, calc(100vh - 8rem)); overflow-y: auto; padding: 1.25rem 1.5rem 1rem; scrollbar-width: thin; }
.tl-scroll:focus-visible { outline: 2px solid var(--bs-primary-base); outline-offset: -2px; }
.tl-list { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-list::before { content: ""; position: absolute; top: .5rem; bottom: .5rem; left: calc(5.5rem - 1px); width: 2px; background: var(--bs-border-color); border-radius: 2px; }
.tl-item { position: relative; display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 2rem; padding-bottom: 1.25rem; }
.tl-item:last-child { padding-bottom: .25rem; }
.tl-time { font-size: .75rem; color: var(--bs-fg-3); text-align: right; padding-top: .2rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-dot { position: absolute; left: 5.5rem; top: .25rem; width: .875rem; height: .875rem; transform: translateX(-50%); border-radius: 50%; background: var(--dot, var(--bs-primary-base)); box-shadow: 0 0 0 4px var(--bs-bg-body); }
.tl-success { --dot: var(--bs-success-base); }
.tl-warning { --dot: var(--bs-warning-base); }
.tl-danger { --dot: var(--bs-danger-base); }
.tl-primary { --dot: var(--bs-primary-base); }
.tl-body { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.tl-body a { color: var(--bs-primary-base); font-weight: 500; }
@media (width < 400px) { .tl-item { grid-template-columns: 4rem 1fr; column-gap: 1.75rem; } .tl-scroll, .tl-head { padding-inline: 1rem; } .tl-list::before { left: calc(4.875rem - 1px); } .tl-dot { left: 4.875rem; } }
Built on Bootstrap 6.0.0-alpha.1 (ES modules, no jQuery). Load Bootstrap through an import map and run the JavaScript as type="module" — the downloaded file is already set up that way. Alpha releases can still change class names.
Built on Bootstrap 5.3.8 with plain JavaScript — no jQuery. Supports light and dark mode via data-bs-theme.