Hover Effect Style 138

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

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

Williamson

Kristiana

Steve Thomas

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-139/img-1.jpg">
<div class="box-content">
<h3 class="title">Williamson</h3>
<ul class="icon">
<li><a href="#" class="fa fa-search"></a></li>
<li><a href="#" class="fa fa-link"></a></li>
</ul>
</div>
</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-139/img-2.jpg">
<div class="box-content">
<h3 class="title">Kristiana</h3>
<ul class="icon">
<li><a href="#" class="fa fa-search"></a></li>
<li><a href="#" class="fa fa-link"></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>

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

.box{
text-align: center;
overflow: hidden;
position: relative;
}
.box:before,
.box:after{
content: "";
width: 100%;
height: 100%;
background: rgba(0,0,0, 0.6);
position: absolute;
top: 0;
left: 0;
bottom: 0;
z-index: 1;
transform: scaleX(0);
transition: all 0.6s ease 0s;
}
.box:after{ transform: scaleY(0); }
.box:hover:before{ transform: scaleX(1); }
.box:hover:after{ transform: scaleY(1); }
.box img{
width: 100%;
height: auto;
transition: all 0.5s ease 0s;
}
.box:hover img{
transform: scale(1.3);
}
.box .box-content{
width: 100%;
position: absolute;
top: 42%;
left: 0;
z-index: 2;
}
.box .title{
font-size: 22px;
font-weight: 600;
color: #fff;
margin: 0 0 10px 0;
opacity: 0;
transition: all 0.3s ease 0s;
}
.box:hover .title{
opacity: 1;
}
.box .icon{
padding: 0;
margin: 0;
list-style: none;
transform: scaleX(0);
transition: all 0.6s ease 0s;
}
.box:hover .icon{
transform: scaleX(1);
}
.box .icon li{ display: inline-block; }
.box .icon li a{
width: 40px;
height: 40px;
line-height: 40px;
border-radius: 50%;
font-size: 16px;
color: #fff;
border: 1px solid #fff;
margin-right: 5px;
transition: all 0.3s ease 0s;
}
.box .icon li a:hover{
background: #fff;
color: #444;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 20px; }
}



Теги:
0

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

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