
Подробное описание и демонстрацией работы эффекта наведения под номером №40 для бибилиотеки Bootstrap. Html и CSS код для реализации hover effect как на изображении.
Демонстрация эффекта наведения — стиль 40


<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-40/img-1.jpg" alt=""/> <div class="over-layer"> <ul class="social-links"> <li><a href="#" class="fa fa-search"></a></li> <li><a href="#" class="fa fa-download"></a></li> <li><a href="#" class="fa fa-link"></a></li> </ul> </div> </div> </div> </div> </div>css разметка для реализации данного эффекта
.box{ position:relative; box-shadow:0 0 5px #b3b3b3; } .box img{ width:100%; height: auto; } .box .over-layer{ position: absolute; top:0; left:0; width:100%; height:100%; opacity:0; background:#333; transform:translate(0,0); transition:all 0.30s linear 0s; } .box:hover .over-layer{ transform:translate(12px,12px); opacity: 1; } .box .social-links{ padding:0; margin:0; list-style:none; text-align:center; position:relative; top:45%; } .box .social-links li{ display:inline-block; margin-right:10px; } .box .social-links li a{ border:1px solid #808080; padding:8px; color:#fff; font-size:20px; background:rgba(255,255,255,0.2); transition: all 0.40s ease 0s; } .box .social-links li a:hover{ background:rgba(0,0,0,0.1); text-decoration:none; } @media only screen and (max-width: 990px) { .box{ margin-bottom: 20px; } }