
Подробное описание и демонстрацией работы эффекта наведения под номером №49 для бибилиотеки Bootstrap. Html и CSS код для реализации hover effect как на изображении.
html разметка для реализации данного эффекта<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-49/img-1.jpg" alt=""/> <div class="over-layer"> <div class="box-content"> <h3 class="title">Web designer</h3> <ul class="category"> <li><a href="#">html</a></li> <li><a href="#">css</a></li> <li><a href="#">php</a></li> </ul> </div> <ul class="links"> <li><a href="#"><i class="fa fa-search"></i></a></li> <li><a href="#"><i class="fa fa-link"></i></a></li> <li><a href="#"><i class="fa fa-download"></i></a></li> </ul> </div> </div> </div> </div> </div>css разметка для реализации данного эффекта
.box{ position: relative; overflow: hidden; box-shadow: 0 0 5px #555; } .box img{ width:100%; height: auto; } .box .over-layer{ width: 100%; height: 100%; position: absolute; top: 0; background: rgba(0,0,0,0.7); opacity: 0; transition: all 0.5s ease 0s; } .box:hover .over-layer{ opacity: 1; } .box .box-content{ width: 100%; position: absolute; top: -100%; padding: 10px 20px; transition: all 0.5s ease 0s; } .box:hover .box-content{ top: 0; } .box .box-content:after{ content: ""; width: 30%; display: block; margin-top: 20px; border-bottom: 2px solid #fff; } .box .title{ font-size: 22px; color: #fff; margin-bottom: 15px; text-transform: capitalize; } .box .category{ margin: 0; padding: 0; list-style: none; } .box .category li{ display: inline-block; } .box .category li a{ font-size: 15px; font-weight: bold; color: #999; text-transform: uppercase; } .box .category li a:hover{ text-decoration: none; color: #fff; } .box .category li a:after{ content: ", "; font-size: 20px; } .box .category li:last-child a:after{ content: ""; } .box .links{ padding: 0 30px 0 0; margin: 0; list-style: none; width: 100%; position: absolute; bottom: -100%; text-align: right; transition: all 0.5s ease 0s; } .box:hover .links{ bottom: 15%; } .box .links li{ display: inline-block; margin-right: 2px; } .box .links li a{ display: block; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; color: #e74c3c; background: #fff; text-align: center; transition: all 0.3s ease 0s; } .box .links li a:hover{ background: #e74c3c; color: #fff; } @media only screen and (max-width: 990px) { .box{ margin-bottom: 20px; } } @media only screen and (max-width: 479px) { .box .title{ margin-top: 5px; } }