Hover Effect Style 112

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

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

Williamson

заговолокer

Kristiana

Web Developer

Steve Thomas

заговолокer
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-112/img-1.jpg" alt=""/>
<div class="box-content">
<h3 class="title">Williamson</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 class="col-md-4 col-sm-6">
<div class="box">
<img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-112/img-2.jpg" alt=""/>
<div class="box-content">
<h3 class="title">Kristiana</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>

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

.box{
position: relative;
overflow: hidden;
}
.box img{
width: 100%;
height: auto;
}
.box .box-content{
padding: 30px 0 30px 43px;
text-align: left;
background-color: rgba(33, 32, 32, 0.9);
position: absolute;
bottom: 20px;
left: 0;
right: 70px;
top: 69%;
z-index: 1;
transition: all 0.3s ease-in-out 0s;
}
.box:hover .box-content{
padding: 38% 0 0 0;
text-align: center;
background: transparent;
bottom: 25px;
left: 0;
right: 0;
top: 15px;
}
.box .box-content:before,
.box .box-content:after{
content: "";
height: 150px;
background: #827f54;
position: absolute;
top: 0;
left: -1000px;
opacity: 0;
z-index: -1;
transition: all 0.3s ease-in-out 0s;
}
.box .box-content:before{
right: -100px;
transform: rotate(-30deg) scale(1.5);
transform-origin: 93% 0 0;
}
.box:hover .box-content:before{
opacity: 1;
transform: rotate(-30deg) scale(1);
}
.box .box-content:after{
right: -1000px;
transform: rotate(30deg) scale(1.5);
transform-origin: 42.5% 0 0;
}
.box:hover .box-content:after{
opacity: 1;
transform: rotate(30deg) scale(1);
}
.box .title{
font-size: 18px;
font-weight: 600;
color: #fff;
text-transform: uppercase;
margin: 0;
}
.box .post{
display: inline-block;
font-size: 12px;
color: #827f54;
text-transform: uppercase;
margin-top: 5px;
}
.box:hover .post{
padding: 5px 10px;
margin: 13px 0;
background: #4b4b4b;
color: #fff;
text-transform: uppercase;
border-radius: 5px;
}
.box .icon{
padding: 0;
margin: 0;
list-style: none;
opacity: 0;
position: absolute;
}
.box:hover .icon{
opacity: 1;
position: relative;
}
.box .icon li{
display: inline-block;
}
.box .icon li a{
display: inline-block;
width: 40px;
height: 40px;
line-height: 40px;
border-radius: 50%;
border: 2px solid #fff;
font-size: 14px;
color: #fff;
margin-right: 5px;
transition: all 0.3s ease 0s;
}
.box .icon li a:hover{
background: #4b4b4b;
border-color: #4b4b4b;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}
@media only screen and (min-width:500px) and (max-width:767px){
.box:hover .box-content{
padding: 23% 0 0;
}
.box .box-content:before{
transform-origin: 89% 0 0;
}
}
@media only screen and (min-width:480px) and (max-width:500px){
.box:hover .box-content{
padding: 38% 0 0;
}
}



Теги:
0

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

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