Bootstrap snippet and html example. team images with hover options

Bootstrap 5.0.1 snippet "team images with hover options" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: team

HTML code

Clean, semantic HTML that powers this Bootstrap 5.0.1 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />

<section id="team" class="our_team section-padding">
    <div class="container">
        <div class="section-title text-center">
            <h1>Meet our expert</h1>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce vitae risus nec dui venenatis dignissim. Aenean vitae metus in augue pretium ultrices.</p>
        </div>
        <div class="row">
            <div class="col-lg-3 col-sm-6 col-xs-12">
                <div class="single-team">
                    <div class="img"><img src="https://bootdey.com/img/Content/avatar/avatar6.png" class="img-fluid" alt=""></div>
                    <div class="team-content">
                        <h3>James Clayton</h3>
                        <p>UI/UX Designer</p>
                        <ul class="social">
                            <li><a href="#"><i class="fa fa-facebook-f"></i></a></li>
                            <li><a href="#"><i class="fa fa-twitter"></i></a></li>
                            <li><a href="#"><i class="fa fa-linkedin"></i></a></li>
                            <li><a href="#"><i class="fa fa-instagram"></i></a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <!-- END COL -->
            <div class="col-lg-3 col-sm-6 col-xs-12">
                <div class="single-team">
                    <div class="img"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" class="img-fluid" alt=""></div>
                    <div class="team-content">
                        <h3>James Clayton</h3>
                        <p>UI/UX Designer</p>
                        <ul class="social">
                            <li><a href="#"><i class="fa fa-facebook-f"></i></a></li>
                            <li><a href="#"><i class="fa fa-twitter"></i></a></li>
                            <li><a href="#"><i class="fa fa-linkedin"></i></a></li>
                            <li><a href="#"><i class="fa fa-instagram"></i></a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <!-- END COL -->
            <div class="col-lg-3 col-sm-6 col-xs-12">
                <div class="single-team">
                    <div class="img"><img src="https://bootdey.com/img/Content/avatar/avatar2.png" class="img-fluid" alt=""></div>
                    <div class="team-content">
                        <h3>James Clayton</h3>
                        <p>UI/UX Designer</p>
                        <ul class="social">
                            <li><a href="#"><i class="fa fa-facebook-f"></i></a></li>
                            <li><a href="#"><i class="fa fa-twitter"></i></a></li>
                            <li><a href="#"><i class="fa fa-linkedin"></i></a></li>
                            <li><a href="#"><i class="fa fa-instagram"></i></a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <!-- END COL -->
            <div class="col-lg-3 col-sm-6 col-xs-12">
                <div class="single-team">
                    <div class="img"><img src="https://bootdey.com/img/Content/avatar/avatar3.png" class="img-fluid" alt=""></div>
                    <div class="team-content">
                        <h3>James Clayton</h3>
                        <p>UI/UX Designer</p>
                        <ul class="social">
                            <li><a href="#"><i class="fa fa-facebook-f"></i></a></li>
                            <li><a href="#"><i class="fa fa-twitter"></i></a></li>
                            <li><a href="#"><i class="fa fa-linkedin"></i></a></li>
                            <li><a href="#"><i class="fa fa-instagram"></i></a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <!-- END COL -->
        </div>
        <!--END  ROW  -->
    </div>
    <!-- END CONTAINER  -->
</section>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 5.0.1 to keep the design, spacing, and responsiveness consistent.

body{margin-top:20px;}
.single-team {
    position: relative;
    border-radius: 10px;
}

@media only screen and (max-width:768px) {
    .single-team {
        margin-bottom: 30px;
    }
}

.single-team::before {
    content: "";
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    border-radius: 10px;
}

.single-team .img img {
    border-radius: 10px;
    width: 100%;
}

.single-team .team-content {
    text-align: center;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 20px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.team-content h3 {
    margin: 0px;
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 5px;
}

.team-content p {
    font-weight: 500;
    font-size: 14px;
}

.single-team .team-content ul.social {
    list-style: none;
    margin-top: 10px;
}

.single-team .team-content .social li {
    display: inline-block;
}

.single-team .team-content .social li a {
    display: block;
    height: 40px;
    width: 40px;
    line-height: 40px;
    border-radius: 100px;
    border: 1px solid #eee;
    font-size: 14px;
    color: #232434;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

.single-team .team-content .social li a:hover {
    color: #7564e5;
}

.single-team:hover::before {
    opacity: 0.7;
}

.single-team:hover .team-content {
    opacity: 1;
    visibility: visible;
}
.section-title h1 {
    font-size: 44px;
    font-weight: 500;
    margin-top: 0;
    position: relative;
    text-transform: capitalize;
    margin-bottom: 15px;
}
.section-title p {
    padding: 0 10px;
    width: 70%;
    margin: auto;
    letter-spacing: 1px;
}
.section-title {
    margin-bottom: 60px;
}
.text-center {
    text-align: center!important;
}

Similar snippets

Bootstrap example and template. bs4 team list

bs4 team list

Bootstrap example and template. team members tab

team members tab

Bootstrap example and template. simple team cards

simple team cards

Bootstrap example and template. Team member

Team member

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. circle photo with div change color

circle photo with div change color

Bootstrap example and template. Gradients dashboard cards

Gradients dashboard cards

Bootstrap example and template. bs4 Responsive Dashboard Menu Cards

bs4 Responsive Dashboard Menu Cards

FAQ

How do I use this snippet?

Include Bootstrap 5.0.1, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 5.0.1.

Bootstrap example and template. team images with hover options

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 490+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 5.0.1

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

This code example is based on bootstrap 5.0.1 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working