
Подробное описание и демонстрация работы блока команда для сайта под номером №24 для библиотеки Bootstrap. Html и CSS код для реализации блока our team’a на сайте как на изображении.
Демо блока наша команда — стиль 24
<div class="container"> <div class="row"> <div class="col-md-4 col-sm-6"> <div class="our-team"> <img src="https://fokit.ru/demo/images/our-team/our-team-style-24/img-1.jpg" alt=""/> <div class="team-content"> <h3 class="team-prof"> <a href="#">Williamson</a> <small>Web designer</small> </h3> <ul class="social-link"> <li><a href="#" class="fab fa-facebook"></a></li> <li><a href="#" class="fab fa-google"></a></li> <li><a href="#" class="fab fa-twitter"></a></li> <li><a href="#" class="fab fa-instagram"></a></li> </ul> </div> </div> </div> </div> </div>css разметка для реализации блока
.our-team{ position: relative; text-align:center; overflow: hidden; box-shadow:0 0 5px #808080; } .our-team img{ width: 100%; height: auto; } .our-team .team-content{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; padding: 40px 20px; background: rgba(0,0,0,0.8); transform: scale(0.1,0.1); transition: all 0.50s ease-in-out; } .our-team:hover .team-content{ opacity: 1; transform: scale(1,1); } .our-team .team-prof{ margin:20px 0 25px 0; } .our-team .team-prof a{ color:#fff; font-size:18px; font-weight: bold; letter-spacing:1px; text-transform: uppercase; } .our-team .team-prof a:hover{ color:#f15277; text-decoration:none; } .our-team .team-prof small{ color:#f15277; display: block; font-size:13px; margin-top: 30px; text-transform: uppercase; } .our-team .social-link{ padding:0; margin:0; } .our-team .social-link li{ list-style:none; margin-right:5px; display:inline-block; } .our-team .social-link li a{ width: 35px; height: 35px; line-height:35px; border-radius:50%; color:#fff; background:#808080; } .our-team .social-link li a:hover{ background:#f15277; text-decoration:none; } @media only screen and (max-width: 990px){ .our-team{ margin-bottom:20px; } }