Hover Effect Style 154

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

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

Williamson

Web Developer

Kristiana

заговолокer

Steve Thomas

Web Developer
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-153/img-1.jpg" alt=""/>
<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>
<span class="post">Web Developer</span>
</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-153/img-2.jpg" alt=""/>
<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>
<span class="post">Web Designer</span>
</div>
</div>
</div>
</div>
</div>

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

.box{
text-align: center;
overflow: hidden;
box-shadow: 0 0 3px rgba(0,0,0,0.3);
position: relative;
}
.box img{
width: 100%;
height: auto;
}
.box .box-content{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.box .box-content:before,
.box .box-content:after{
content: "";
width: 100%;
height: 50%;
background: #1e1818;
position: absolute;
top: -55%;
left: 0;
transition: all 0.3s ease 0s;
}
.box .box-content:after{
top: auto;
bottom: -55%;
}
.box:hover .box-content:before{ top: 0; }
.box:hover .box-content:after{ bottom: 0; }
.box .title,
.box .post{
font-size: 30px;
font-weight: bold;
color: #fff;
margin: 0;
opacity: 0;
position: relative;
top: 10%;
z-index: 1;
transition: all 0.35s ease 0s;
}
.box .post{
display: block;
font-size: 16px;
top: 63%;
}
.box:hover .title,
.box:hover .post{
top: 30%;
opacity: 1;
transition-delay: 0.35s;
}
.box:hover .post{ top: 37%; }
.box .icon{
padding: 0;
margin: 0;
list-style: none;
z-index: 1;
position: relative;
top: 33%;
transform: scale(0);
transition: all 0.35s ease 0s;
}
.box:hover .icon{
transform: scale(1);
transition-delay: 0.35s;
}
.box .icon li{ display: inline-block; }
.box .icon li a{
display: block;
width: 40px;
height: 40px;
line-height: 40px;
border-radius: 50%;
background: #fff;
margin-right: 10px;
font-size: 18px;
color: #1e1818;
transition: all 0.3s ease 0s;
}
.box .icon li a:hover{
background: #1e1818;
color: #fff;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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