Hover Effect Style 167

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

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

Williamson

Web Developer

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

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

.box{
overflow: hidden;
box-shadow: 0 0 3px rgba(0,0,0,0.3);
position: relative;
}
.box img{
width: 100%;
height: auto;
transform: scale(1);
transition: all 0.5s ease 0s;
}
.box:hover img{ transform: scale(1.1); }
.box .box-content{
width: 100%;
height: 100%;
background: rgba(47,50,54,0.91);
text-align: center;
position: absolute;
top: 0;
left: 0;
opacity: 0;
transform: rotateY(180deg) scale(0.5);
transition: all 0.45s ease-out 0s;
}
.box:hover .box-content{
opacity: 1;
transform: rotateY(0deg) scale(1);
}
.box .box-content:before{
content: "";
width: 90%;
height: 90%;
border: 1px solid #fff;
position: absolute;
top: 5%;
left: 5%;
}
.box .icon{
display: inline-block;
padding: 0;
margin: 0;
list-style: none;
position: relative;
top: 40%;
}
.box .icon li{ display: inline-block; }
.box .icon li a{
display: block;
width: 50px;
height: 50px;
line-height: 50px;
border-radius: 50%;
background: #fff;
font-size: 18px;
color: #f53877;
transition: all 0.5s ease 0s;
}
.box .icon li a:hover{
background: #f53877;
color: #fff;
}
.box .content{
padding: 10px;
text-align: left;
position: absolute;
bottom: 5%;
left: 5%;
}
.box .title{
font-size: 20px;
font-weight: bold;
color: #fff;
text-transform: uppercase;
margin: 0 0 5px;
}
.box .post{
display: block;
font-size: 14px;
color: #fff;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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