Hover Effect Style 191

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

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

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-191/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-191/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;
border-radius: 10px;
position: relative;
}
.box:before,
.box:after{
content: "";
width: 100%;
height: 110%;
background: rgba(0,0,0,0.5);
position: absolute;
top: 0;
left: 50%;
opacity: 0;
transform: translateX(-50%) scale(3);
-webkit-clip-path: polygon(50% 0%, 63% 32%, 98% 35%, 74% 60%, 79% 91%, 50% 70%, 21% 91%, 25% 60%, 2% 35%, 34% 29%);
clip-path: polygon(50% 0%, 63% 32%, 98% 35%, 74% 60%, 79% 91%, 50% 70%, 21% 91%, 25% 60%, 2% 35%, 34% 29%);
transition: all 0.5s ease 0s;
}
.box:after{
transform: translateX(-50%) scale(0);
transition-delay: 0.2s;
}
.box:hover:before{
opacity: 1;
transform: translateX(-50%) scale(0);
}
.box:hover:after{
opacity: 1;
transform: translateX(-50%) scale(3);
}
.box img{
width: 100%;
height: auto;
}
.box .box-content{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.box .inner-content{
width: 100%;
position: absolute;
top: 50%;
left: 0;
opacity: 0;
z-index: 2;
transform: translateY(-150%) scale(1);
transition: all 0.3s ease 0.2s;
}
.box:hover .inner-content{
transform: translateY(-50%);
opacity: 1;
transition:all 0.3s ease 0.2s;
}
.box .title{
font-size: 25px;
font-weight: 700;
color: #f39003;
text-transform: uppercase;
text-shadow: 0 0 5px #000;
margin: 0 0 5px 0;
}
.box .post{
display: block;
font-size: 14px;
color: #fff;
text-transform: uppercase;
margin-bottom: 7px;
}
.box .icon{
width: 100%;
list-style: none;
padding: 0;
margin: 0;
position: absolute;
bottom: -100%;
right: 50%;
opacity: 0;
z-index: 2;
transform: translateX(50%);
transition:all 0.3s ease 0.3s;
}
.box:hover .icon{
bottom: 15px;
opacity: 1;
}
.box .icon li{
display: inline-block;
margin: 0 3px;
}
.box .icon li a{
display: block;
width: 35px;
height: 35px;
line-height: 35px;
border-radius:50%;
background: #f39003;
font-size: 19px;
color: #fff;
transition: all 0.3s ease 0s;
}
.box .icon li a:hover{
box-shadow: 0 0 4px 2px #f39003;
background: #fff;
color: #000;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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