Hover Effect Style 156

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

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

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-157/img-1.jpg">
<div class="box-content">
<i class="icon fa fa-paper-plane"></i>
<h3 class="title">Williamson</h3>
<span class="post">Web Developer</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-157/img-2.jpg">
<div class="box-content">
<i class="icon fa fa-paper-plane"></i>
<h3 class="title">Kristiana</h3>
<span class="post">Web Designer</span>
</div>
</div>
</div>
</div>
</div>

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

.box{
text-align: center;
perspective: 50em;
position: relative;
}
.box:after{
content: "";
display: block;
background: #f77f00;
position: absolute;
top: 20px;
left: 20px;
bottom: 20px;
right: 20px;
opacity: 0;
transform: rotateY(90deg);
transform-origin: 0 0;
transition: all 0.4s ease-in-out 0s;
}
.box:hover:after{
transform: rotateY(0);
opacity: 0.9;
}
.box img{
width: 100%;
height: auto;
}
.box .box-content{
color: #eae2b7;
position: absolute;
top: 50%;
left: 20px;
right: 20px;
opacity: 0;
z-index: 1;
transform: translate(10%, -50%);
transition: all 0.2s ease-out;
}
.box:hover .box-content{
opacity: 1;
transform: translate(0, -50%);
transition-delay: 0.2s;
}
.box .icon{
display: block;
font-size: 32px;
margin-bottom: 10px;
}
.box .title{
font-size: 22px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
margin: 0 0 10px;
}
.box .post{
display: block;
font-size: 15px;
font-weight: 600;
font-style: italic;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}



Теги:
0

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

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