Hover Effect Style 208

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

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

Williamson

Web Developer

Steve Thomas

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

<div class="demo">
<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-208/img-1.jpg" alt="">
<div class="box-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 class="col-md-4 col-sm-6">
<div class="box">
<img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-208/img-2.jpg" alt="">
<div class="box-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 разметка для реализации данного эффекта

.demo{ background: #e7e7e7; }
.box{
border-radius: 15px;
overflow: hidden;
position: relative;
}
.box:before,
.box:after{
content: "";
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.3);
opacity: 0;
position: absolute;
top: 0;
left: 0;
z-index: 1;
transition: all 0.3s ease 0s;
}
.box:after{
background-color: rgba(255,255,255,0.5);
opacity: 1;
top: -100%;
-webkit-clip-path: polygon(0 0, 100% 0%, 100% 40%, 0 60%);
clip-path: polygon(0 0, 100% 0%, 100% 40%, 0 60%);
}
.box:hover:before{ opacity: 1; }
.box:hover:after{ top: 0; }
.box img{
width: 100%;
height: auto;
transition: all 0.3s ease 0s;
}
.box:hover img{
filter: blur(2px) grayscale(60%) ;
transform: scale(1.2);
}
.box .box-content{
text-align: center;
width: 100%;
padding: 15px 0 0 15px;
position: absolute;
left: 50%;
bottom: -100%;
z-index: 2;
transform: translateX(-50%);
transition: all 0.3s ease 0s;
}
.box:hover .box-content{ bottom: 10px; }
.box .title{
color: #fff;
font-size: 22px;
font-weight: 600;
text-transform: uppercase;
text-shadow: 0 0 2px #000;
margin: 0 0 5px;
}
.box .post{
color: #fff;
background: #ea3c14;
font-size: 14px;
letter-spacing: 2px;
text-transform: uppercase;
padding: 3px 10px;
margin-bottom: 10px;
border-radius: 5px;
display: inline-block;
transition: all 0.8s ease 0.3s;
}
.box .icon{
list-style: none;
text-align: center;
padding: 0;
margin: 0;
position: absolute;
top: -50%;
left: 50%;
z-index: 3;
transform: translateX(-50%) translateY(-50%);
transition: all 0.3s ease 0s;
}
.box:hover .icon{ top: 50%; }
.box .icon li{
margin: 0 4px;
display: inline-block;
}
.box .icon li a{
color: #fff;
background: #ea3c14;
font-size: 18px;
line-height: 40px;
width: 40px;
height: 40px;
border-radius: 50%;
display: block;
transition: all 0.3s ease 0s;
}
.box .icon li a:hover{
background: #2c3e50;
color: #fff;
box-shadow: 0 0 10px #2c3e50;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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