
Подробное описание и демонстрацией работы эффекта наведения под номером №20 для бибилиотеки Bootstrap. Html и CSS код для реализации hover effect как на изображении.
Демонстрация эффекта наведения — стиль 20
<div class="container"> <div class="row"> <div class="col-md-4 col-sm-6"> <div class="box"> <div class="box-img"> <img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-20/img-1.jpg" alt=""> <div class="over-layer"> <a href="#" class="fa fa-search"></a> <a href="#" class="fa fa-link"></a> </div> </div> <div class="box-content"> <h2 class="title"><a href="#">Lorem ipsum dolor sit</a><small>Lorem ipsum</small></h2> </div> </div> </div> </div> </div>css разметка для реализации данного эффекта
.box .box-img{ overflow: hidden; position: relative; } .box .box-img img{ width:100%; height: auto; transform: scale(1,1); transition:all 0.50s ease 0s; } .box:hover .box-img img{ transform: scale(1.1,1.1); } .box .over-layer{ width:100%; height:100%; position: absolute; left:0; bottom:0; text-align:center; opacity:0; transform:scale(0.4,0.4); background: rgba(29, 208, 173,0.8); transition:all 0.20s ease-in-out; } .box .box-img:hover .over-layer{ transform: scale(1,1); opacity:1; } .box .over-layer a{ position: relative; top:45%; width: 45px; height: 45px; line-height: 45px; text-align: center; } .box .fa-search, .box .fa-link{ border:1px solid #fff; color:#fff; font-size:16px; margin-right:5%; transition: all 0.50s ease; } .box .fa-link{ margin-right: 0; } .box .fa-search:hover, .box .fa-link:hover{ border-radius:20%; text-decoration:none; } .box .box-content{ border:1px solid #d3d3d3; background:#fff; padding:2% 2% 3% 2%; text-align: center; } .box .title{ margin:0; } .box .title a{ font-size:14px; color:#333; text-transform: uppercase; } .box .title a:hover{ color: #1bc6a4; text-decoration: none; } .box .title small{ display: block; font-size:14px; margin-top:5px; } @media only screen and (max-width:990px) { .box{ margin-bottom:5%; } }