Hover Effect Style 105

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

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

Williamson

заголовок

Kristiana

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-105/img-1.jpg" alt=""/>
<div class="box-content">
<h3 class="title">Williamson</h3>
<span class="post">Web designer</span>
</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-105/img-2.jpg" alt=""/>
<div class="box-content">
<h3 class="title">Kristiana</h3>
<span class="post">Web developer</span>
</div>
</div>
</div>
</div>
</div>

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

.box{
background: #3c3c3c;
text-align: center;
box-shadow: 0 0 5px #7e7d7d;
overflow: hidden;
position: relative;
-webkit-transition: all 0.35s ease;
transition: all 0.35s ease;
}
.box:before,
.box:after{
content: "";
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: #3c3c3c;
border-left: 3px solid #fff;
border-right: 3px solid #fff;
opacity: 0.9;
z-index: 1;
-webkit-transition: all 0.35s ease;
transition: all 0.35s ease;
}
.box:before{
-webkit-transform: skew(45deg) translateX(-155%);
transform: skew(45deg) translateX(-155%);
}
.box:hover:before{
-webkit-transform: skew(45deg) translateX(-55%);
transform: skew(45deg) translateX(-55%);
}
.box:after{
-webkit-transform: skew(45deg) translateX(155%);
transform: skew(45deg) translateX(155%);
}
.box:hover:after{
-webkit-transform: skew(45deg) translateX(55%);
transform: skew(45deg) translateX(55%);
}
.box img{
width: 100%;
height: auto;
-webkit-transition: all 0.35s ease;
transition: all 0.35s ease;
}
.box:hover img{
opacity: 0.5;
}
.box .box-content{
position: absolute;
top: 50%;
left: 50%;
-webkit-box-shadow: 0 0 10px #3c3c3c;
box-shadow: 0 0 10px #3c3c3c;
opacity: 0;
z-index: 2;
-webkit-transform: translate(-50%, -50%) scale(0.5);
transform: translate(-50%, -50%) scale(0.5);
-webkit-transition: all 0.35s ease;
transition: all 0.35s ease;
}
.box:hover .box-content{
-webkit-transform: translate(-50%, -50%) scale(1);
transform: translate(-50%, -50%) scale(1);
opacity: 1;
}
.box .title,
.box .post{
font-size: 18px;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
background: #3c3c3c;
border: 2px solid #fff;
color: #fff;
padding: 15px 20px;
margin: 0;
}
.box .post{
display: block;
font-size: 14px;
font-weight: normal;
text-transform: capitalize;
padding: 5px 10px;
margin-top: 15px;
}
@media only screen and (max-width: 990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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