Hover Effect Style 193

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

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

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-193/img-1.jpg">
<div class="box-content">
<div class="inner-content">
<h3 class="title">Williamson</h3>
<span class="post">Web Developer</span>
<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 class="col-md-4 col-sm-6">
<div class="box">
<img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-193/img-2.jpg">
<div class="box-content">
<div class="inner-content">
<h3 class="title">Kristiana</h3>
<span class="post">Web Designer</span>
<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>
</div>

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

.box{
text-align: center;
overflow: hidden;
position: relative;
}
.box img{
width: 100%;
height: auto;
}
.box .box-content{
width: 100%;
height: 100%;
position: absolute;
top: 50%;
left: 50%;
z-index: 2;
transform: translate(-50%, -50%);
}
.box:before,
.box:after,
.box .box-content:before,
.box .box-content:after{
content: "";
width: 80%;
height: 80%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(45deg);
transition: all 0.5s ease 0s;
}
.box:before{
background: linear-gradient(45deg,rgba(0,0,0,0.2) 49%, transparent 50%);
left: -100%;
}
.box:after{
background: linear-gradient(45deg,transparent 49%, rgba(0,0,0,0.2) 50%);
left: 160%;
}
.box .box-content:before,
.box .box-content:after{
width: 65%;
height: 65%;
background: linear-gradient(45deg,rgba(0,0,0,0.3) 49%, transparent 50%);
left: -100%;
transition-delay: 0.1s;
}
.box .box-content:after{
background: linear-gradient(45deg,transparent 49%, rgba(0,0,0,0.3) 50%);
left: 160%;
}
.box:hover:before,
.box:hover:after,
.box:hover .box-content:before,
.box:hover .box-content:after{ left: 50%; }
.box .inner-content{
width: 50%;
height: 50%;
color: #fff;
padding: 40px 0;
position: absolute;
top: 50%;
left: 50%;
z-index: 2;
transform: translate(-50%, -50%) scale(0);
transition: all 0.3s ease 0.2s;
}
.box .inner-content:after{
content: "";
width: 100%;
height: 100%;
background: rgba(255,79,79,0.8);
position: absolute;
top: 50%;
left: 50%;
z-index: -1;
transform: translate(-50%, -50%) rotate(45deg);
}
.box:hover .inner-content{
transform: translate(-50%, -50%) scale(1);
transition: all 0.3s ease 0s;
}
.box .title{
font-size: 18px;
font-weight: 700;
text-transform: uppercase;
margin-bottom: 5px;
}
.box .post{
display: block;
font-size: 14px;
text-transform: capitalize;
margin-bottom: 7px;
}
.box .icon{
padding: 0;
margin: 0;
list-style: none;
transform: rotateY(360deg) scale(0);
transition: all 0.3s ease 0s;
}
.box:hover .icon{ transform: rotateY(0) scale(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: #fff;
font-size: 16px;
color: #505050;
transition: all 0.3s ease 0s;
}
.box .icon li a:hover{
box-shadow: 0 0 0 5px rgba(0,0,0,0.5);
background: #fff;
color: rgb(255,79,79);
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}
@media only screen and (max-width:320px){
.box .inner-content{ padding: 25px 0; }
.box .title{ font-size: 16px; }
}



Теги:
0

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

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