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



<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-64/img-1.jpg"/> <ul class="social-links"> <li><a href="#"><i class="fab fa-facebook"></i></a></li> <li><a href="#"><i class="fab fa-twitter"></i></a></li> <li><a href="#"><i class="fab fa-instagram"></i></a></li> </ul> </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-64/img-2.jpg"/> <ul class="social-links"> <li><a href="#"><i class="fab fa-facebook"></i></a></li> <li><a href="#"><i class="fab fa-twitter"></i></a></li> <li><a href="#"><i class="fab fa-instagram"></i></a></li> </ul> </div> </div> </div> </div>css разметка для реализации данного эффекта
.box{ position: relative; box-shadow: 0 0 5px #555; } .box:before, .box:after{ content: ""; width: 0; height: 0; background: rgba(213, 104, 13, 0.5); position: absolute; transition: all 0.5s ease 0s; } .box:before{ top: 0; left: 0; } .box:after{ bottom: 0; right: 0; } .box:hover:before, .box:hover:after{ width: 100%; height: 100%; } .box img{ width: 100%; height: auto; } .box .social-links{ width: 100%; list-style: none; padding: 0; margin: 0; text-align: center; position: absolute; top: 45%; left: 0; z-index: 1; opacity: 0; transition: all 0.7s ease 0s; } .box:hover .social-links{ opacity: 1; } .box .social-links li{ display: inline-block; margin-right: 5px; } .box .social-links li a{ display: block; width: 40px; height: 40px; line-height: 40px; background: #fff; font-size: 15px; color: #000; } .box .social-links li a:hover{ background: #70407f; color: #fff; } .box .social-links li a:hover i{ -webkit-animation-name: loading; animation-name: loading; -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-timing-function: linear; animation-timing-function: linear; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; } @-webkit-keyframes loading{ 25%{ -webkit-transform: scale(1.3); transform: scale(1.3); } 75%{ -webkit-transform: scale(1); transform: scale(1); } } @keyframes loading{ 25%{ -webkit-transform: scale(1.3); transform: scale(1.3); } 75%{ -webkit-transform: scale(1); transform: scale(1); } } @media only screen and (max-width: 990px){ .box{ margin-bottom: 20px; } }