
Подробное описание и демонстрацией работы эффекта наведения под номером №150 для бибилиотеки Bootstrap. Html и CSS код для реализации hover effect как на изображении.
<div class="container"> <div class="row"> <div class="col-md-4 col-sm-6"> <div class="box"> <img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-150/img-1.jpg" alt=""/> <div class="box-content"> <h3 class="title">Williamson</h3> <span class="post">Web Developer</span> <ul class="icon"> <li><a href="#" class="fa fa-search"></a></li> <li><a href="#" class="fa fa-link"></a></li> </ul> </div> </div> </div> <div class="col-md-4 col-sm-6"> <div class="box"> <img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-150/img-2.jpg" alt=""/> <div class="box-content"> <h3 class="title">Kristiana</h3> <span class="post">Web Designer</span> <ul class="icon"> <li><a href="#" class="fa fa-search"></a></li> <li><a href="#" class="fa fa-link"></a></li> </ul> </div> </div> </div> </div> </div>css разметка для реализации данного эффекта
.box{ text-align: center; overflow: hidden; box-shadow: 0 0 3px rgba(0,0,0,0.3); position: relative; } .box:before, .box:after{ content: ""; display: block; width: 200px; height: 200px; border-radius: 200px; background: #404040; margin: -100px 0 0 -100px; position: absolute; top: 50%; left: -20%; opacity: 0.5; transform: scale(0); transition: all 0.8s ease-out 0s; } .box:after{ background: #1e1818; transition: all 0.4s ease-in 0.3s; } .box:hover:before, .box:hover:after{ opacity: 1; transform: scale(13); } .box img{ width: 100%; height: auto; } .box .box-content{ width: 100%; position: absolute; top: 50%; left: 0; z-index: 1; transform: translateY(-50%) scale(0); transition: all 0.3s ease-in 0.3s; } .box:hover .box-content{ transform: translateY(-50%) scale(1); } .box .title{ font-size: 28px; font-weight: bold; color: #fff; margin: 0 0 5px 0; } .box .post{ display: block; font-size: 14px; font-style: italic; color: #8e8b8b; margin-bottom: 20px; } .box .icon{ list-style: none; padding: 0; margin: 0; } .box .icon li{ display: inline-block; } .box .icon li a{ display: block; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; background: #fff; font-size: 18px; color: #000; margin-right: 10px; transition: all 0.3s ease 0s; } .box .icon li a:hover{ transform: rotate(360deg); } @media only screen and (max-width:990px){ .box{ margin-bottom: 20px; } }