Skip to content

Activity Feed Timeline

Dark Bootstrap 5 activity feed timeline with colored event icons, timestamps, quoted comments and filter chips for code, comments and deploys.

Also known as: activity feed, event timeline, vertical timeline feed, recent activity log

Bootstrap 5 Timelines Responsive Dark #activity #dark #dashboard #feed #timeline

Activity Feed Timeline live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A dark Bootstrap 5 activity feed that shows recent project events on a vertical timeline, with colored icons for code, comments and deploys, relative timestamps and filter chips. Use it in dashboards, project overviews, admin panels or the sidebar of a team workspace.

How it works

The root section.af wraps a rounded .af-card with a header and an ordered list. The header holds the title and .af-filters, a Bootstrap btn-group of btn-check radio buttons styled as .af-chip pills. The list ol.af-list draws the timeline line with a ::before pseudo element, and each li.af-item has a data-type attribute (code, comment or deploy), a round .af-icon with a Bootstrap Icon and an .af-body with the event text. Branch names and versions use .af-tag, quoted comments use .af-quote, and every timestamp is a <time> element with a machine-readable datetime attribute next to the human text.

On DOMContentLoaded the script finds every .af on the page and listens to the change event of each radio in .af-filters. It hides items whose data-type does not match the selected value, replays a short fade-in by toggling .af-item--in, shows .af-empty when nothing matches and writes a summary such as "Comments: 2 items shown" into the hidden .af-status region. Without JavaScript the full list is shown and the chips simply do nothing.

Customization

  • --af-bg, --af-surface and --af-border on .af in style.css: switch the card to another dark tone or a light theme.
  • --af-code, --af-comment and --af-deploy: change the ring and icon color for each event type.
  • --af-accent: sets the active chip, link color and focus outlines.
  • --af-icon-size: makes the icon circles bigger or smaller; the timeline line stays centered because its left is calculated from this value.
  • Add a new event type by giving items a new data-type, adding a matching radio with that value to .af-filters, and a color class such as .af-icon--alert.
  • Remove .af-filters entirely for a read-only feed; the script then has no radios to bind and the list stays as is.

Use cases

  • Project dashboards: a dark timeline lists recent code, comment and deploy events with timestamps
  • Admin panels: colored event icons let administrators scan what happened at a glance
  • Team workspaces: filter chips for code, comments and deploys narrow the feed to one type
  • Project overviews: quoted comments inside the feed give context without opening another page

Accessibility

The feed is an ordered list, so assistive technology reads the number of events and their order. Icons are aria-hidden because the text already describes each event. The filter chips are real radio inputs inside a role="group" labelled "Filter activity", so arrow keys move between them and the focused chip gets a visible outline. .af-status is a role="status" live region that announces how many items match after each change. The fade-in is disabled under prefers-reduced-motion: reduce, and light text on the slate background meets WCAG AA contrast.

Usage notes

Requires Bootstrap 5 (added automatically) and Bootstrap Icons. When you place several feeds on one page, give each one a unique radio name (here af-filter-1) and unique id/for pairs; the script itself scopes everything to its own .af root. Generate the relative time text on the server, or update it from the datetime attribute with Intl.RelativeTimeFormat.

Activity Feed Timeline 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, dark design
Category
Timelines
License
Free for personal and commercial use

Questions about this template

Can I use the Activity Feed Timeline 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">
Activity Feed Timeline – free Bootstrap 5 timeline template
Activity Feed Timeline · free Bootstrap 5 timeline template

More Timelines

Timeline with Scroll Progress Line – free Pure CSS timeline template

Timeline with Scroll Progress Line

Dark vertical timeline whose glowing center line fills as you scroll, lighting up each milestone when it is reached. Alternating cards on desktop.

Vertical Timeline – free Tailwind CSS timeline template

Vertical Timeline

Responsive Tailwind CSS vertical timeline with icon markers, dates, category labels and descriptions that alternate left and right on wider screens.

Alternating Timeline – free Pure CSS timeline template

Alternating Timeline

Pure CSS vertical timeline with a center line and entries that alternate left and right, collapsing to a single column on mobile.