Hover Effect Style 188

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

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

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

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

.box{
text-align: center;
overflow: hidden;
position: relative;
}
.box img{
width: 100%;
height: auto;
transform: scale(1.3);
transition: all 0.3s ease 0s;
}
.box:hover img{ transform: scale(1); }
.box .box-content{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 2;
transition: all 0.2s ease 0s;
}
.box:hover .box-content{ background: rgba(0,0,0,0.4); }
.box:before,
.box:after,
.box .box-content:before,
.box .box-content:after{
content: "";
width: 105%;
height: 105%;
background: rgba(0,0,0,0.6);
position: absolute;
top: 50%;
left: 50%;
z-index: 1;
transform: translate(-50%, -170%) rotate(45deg);
transition: all 0.3s ease 0s;
}
.box:hover:before{ transform: translate(-50%, -73%) rotate(45deg); }
.box:hover:after{
background: rgba(0,0,0,0.4);
transform: translate(-50%, -93%) rotate(45deg);
}
.box:hover .box-content:before{
background: rgba(0,0,0,0.3);
transform: translate(-50%, -113%) rotate(45deg);
}
.box:hover .box-content:after{
background: rgba(0,0,0,0.2);
transform: translate(-50%, -133%) rotate(45deg);
}
.box .inner-content{
width: 100%;
padding: 7px 0;
opacity: 0;
position: absolute;
top: 50%;
left: 0;
z-index: 2;
transform: translateY(-50%);
transition: all 0.3s ease 0.1s;
}
.box:hover .inner-content{ opacity: 1; }
.box .title{
padding: 0 10px;
margin: 0 0 3px 0;
font-size: 25px;
font-weight: 700;
color: #76e02f;
letter-spacing: 1px;
text-transform: uppercase;
transition: all 0.6s ease 0s;
}
.box .post{
display: block;
font-size: 16px;
font-style: italic;
color: #fff;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.6s ease 0s;
}
.box .icon{
padding: 0;
margin: 0;
list-style: none;
position: absolute;
bottom: 50px;
left: 50%;
transform: translateX(-50%);
transition: all 0.5s ease 0s;
}
.box .icon li{
display: inline-block;
margin: 0 5px;
opacity: 0;
transition: all 400ms cubic-bezier(1.000, -0.360, 0.570, -0.150);
}
.box .icon li:first-child{ transform: translateX(-120px); }
.box .icon li:last-child{ transform: translateX(120px); }
.box:hover .icon li{
opacity: 1;
transform: translateX(0);
}
.box .icon li a{
display: block;
width: 40px;
height: 40px;
line-height: 40px;
border-radius: 50%;
background: #76e02f;
margin-bottom: 10px;
font-size: 20px;
color: #fff;
position: relative;
transition: all 0.3s ease 0s;
}
.box .icon li a:hover{
text-decoration: none;
border-radius: 0 10px;
background: #fff;
box-shadow: 0 0 10px rgba(0,0,0,0.9) inset;
color: #76e02f;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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