Hover Effect Style 28

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

Демонстрация эффекта наведения — стиль 28

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-28/img-1.jpg" alt="">
<div class="over-layer">
<h4 class="post"><a href="#">Lorem ipsum dolor</a></h4>
<ul class="social-links">
<li><a href="#" class="fab fa-facebook"></a></li>
<li><a href="#" class="fab fa-google"></a></li>
<li><a href="#" class="fab fa-twitter"></a></li>
<li><a href="#" class="fab fa-instagram"></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>

css разметка для реализации данного эффекта

.box{
border:4px solid #fff;
box-shadow:0 0 10px #808080;
position: relative;
overflow: hidden;
}
.box img{
width: 110%;
height: auto;
position: relative;
transform: translate3d(-30px, 0px, 0px);
transition: all 0.30s linear 0s;
}
.box:hover img{
transform: translate3d(0px, 0px, 0px);
}
.box .over-layer{
position: absolute;
width:100%;
height:100%;
top:0;
left:0;
opacity:0;
background:rgba(0, 0, 0,0.8);
transition: all  0.30s ease 0s;
}
.box:hover .over-layer{
opacity:1;
}
.box .post a{
position:absolute;
bottom:-20%;
left:10%;
color:#fff;
text-transform: uppercase;
transition: all 0.30s ease 0s;
}
.box:hover .post a{
bottom:35%;
text-decoration:none;
}
.box .social-links{
padding:0;
margin:0;
list-style:none;
position: absolute;
bottom:-30%;
left:10%;
transition:all .70s ease 0s;
}
.box:hover .social-links{
bottom:20%;
}
.box .social-links li{
display:inline-block;
}
.box .social-links li a{
width:30px;
height:30px;
line-height:30px;
color:#fff;
border:1px solid #fff;
border-radius:50%;
text-align:center;
}
.box .social-links li a:hover{
text-decoration:none;
background:#fff;
color:#333;
}
@media only screen and (max-width: 990px){
.box{
margin-bottom:20px;
}
}



Теги:
0

Оставить своё мнение

Ваш e-mail не будет опубликован. Обязательные поля помечены *