Skip to content

Team Cards with Hover Info

Bootstrap 5 team section with portrait cards that reveal a bio and social links on hover or keyboard focus. Pure CSS, no JavaScript.

Also known as: team members section, team cards with bio, meet the team section, staff profile cards

Team Cards with Hover Info live demo

Open in new tab

Bootstrap 5 code (HTML, CSS)

A Bootstrap 5 team section with four portrait cards that slide up a violet overlay with a short bio and social links on hover. Use it on About pages, company landing pages and agency sites to introduce the people behind a product.

How it works

The root is section.tm-team. A centered .tm-head holds the .tm-kicker label, the #tm-title heading and an intro line. The cards sit in a Bootstrap grid with row-cols-1 row-cols-sm-2 row-cols-lg-4, so the layout goes from one column on phones to two on small tablets and four on desktops.

Each card is an article.card.tm-card with two parts. .tm-media keeps a fixed aspect-ratio: 6 / 7 and contains the .tm-photo portrait plus an absolutely positioned .tm-overlay with the .tm-bio text and the .tm-social link list. Below it, .tm-body shows the .tm-name and .tm-role.

The effect is pure CSS, so there is no JavaScript. By default the overlay has opacity: 0 and is shifted down. On :hover or :focus-within, the card lifts, the photo zooms slightly and the overlay fades and slides into place. Because :focus-within is used, tabbing to a social link reveals the overlay for keyboard users. On devices with hover: none the overlay is always visible, so touch users can read the bio and tap the links.

Customization

  • --tm-accent in .tm-team: recolor the kicker, role text and the social icon hover color.
  • --tm-overlay-from and --tm-overlay-to in .tm-team: change the overlay gradient, for example to a dark neutral tint.
  • --tm-speed in .tm-team: make the reveal animation faster or slower.
  • --tm-radius in .tm-team: round or square the card corners.
  • aspect-ratio: 6 / 7 in .tm-media: use 1 / 1 for square portraits or 3 / 4 for taller ones.
  • row-cols-lg-4 on the grid row: switch to row-cols-lg-3 for a three-person team.
  • Replace the placehold.co URLs in .tm-photo with real photos; object-fit: cover crops them cleanly.

Use cases

  • About pages: portrait cards introduce the people behind a product or company
  • Agency websites: a violet overlay slides up on hover with a short bio and social links
  • Company landing pages: keyboard focus reveals the same bio, so the cards work without a mouse
  • Startup sites: the lightweight layout needs no JavaScript to show the team

Accessibility

Each card is an article labelled by its name heading, and the section is labelled by #tm-title. Portraits have descriptive alt text. The bio stays in the DOM, so screen readers read it even when it is visually hidden. Icon links have aria-label values such as "Taylor on LinkedIn", the icons themselves are aria-hidden, and links show a yellow focus-visible outline that stands out on the violet overlay. With prefers-reduced-motion: reduce, the lift, zoom and slide transitions are disabled.

Usage notes

Requires Bootstrap 5 and Bootstrap Icons. Replace the # link targets with real profile URLs, and make the heading ids (tm-name-1 and so on) unique if you repeat the section on one page.

Team Cards with Hover Info at a glance

Framework
Bootstrap 5
Code
HTML, CSS
JavaScript
Only Bootstrap 5's own script
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile
Category
Team Sections
License
Free for personal and commercial use

Questions about this template

Can I use the Team Cards with Hover Info 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 and add the CSS to your stylesheet. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. Only Bootstrap 5's own JavaScript is used, and the download already includes it.

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">
Team Cards with Hover Info – free Bootstrap 5 team section template
Team Cards with Hover Info · free Bootstrap 5 team section template

More Team Sections

Team Member Carousel with Photos – free Tailwind CSS team section template

Team Member Carousel with Photos

Swipeable Tailwind CSS team carousel with portrait photos, names and roles, scroll snapping, arrow buttons, mouse drag and a progress bar.

Leadership Team with Large Portrait Photos – free Bootstrap 5 team section template

Leadership Team with Large Portrait Photos

Editorial Bootstrap 5 leadership section with large portrait photos, executive titles, short bios, expandable read-more text and LinkedIn links.

Team Section with Photo Cards – free WordPress team section template

Team Section with Photo Cards

A team section with four photo cards: square portraits, names, roles, short bios and social links, built as a meet the team block for Gutenberg.

Team Grid – free Tailwind CSS team section template

Team Grid

Dark Tailwind CSS team section with portrait photos, roles, short bios, accessible social links and a hiring card.