Hover Effect Style 92

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

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

willimson

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mattis augue in odio suscipit, at.

read more

Steve Thomas

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mattis augue in odio suscipit, at.

read more
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-92/img-1.jpg" alt=""/>
<div class="box-layer"></div>
<div class="box-content">
<h4 class="title">willimson</h4>
<p class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mattis augue in odio suscipit, at.
</p>
<a href="#" class="read-more">read more</a>
</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-92/img-2.jpg" alt=""/>
<div class="box-layer"></div>
<div class="box-content">
<h4 class="title">Kristiana</h4>
<p class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mattis augue in odio suscipit, at.
</p>
<a href="#" class="read-more">read more</a>
</div>
</div>
</div>
</div>
</div>

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

.box{
text-align: center;
overflow: hidden;
position: relative;
box-shadow: 0 0 5px #555;
}
.box img{
width: 100%;
height: auto;
}
.box .box-layer{
width: 100%;
height: 100%;
background: rgba(69, 88, 65, 0.7);
position: absolute;
top: 0;
left: 0;
-webkit-transform: scaleX(0);
-moz-transform: scaleX(0);
-ms-transform: scaleX(0);
-o-transform: scaleX(0);
transform: scaleX(0);
-ms-transition: all 0.4s cubic-bezier(0, 1.31, 1, -0.29) 0.4s;
-o-transition: all 0.4s cubic-bezier(0, 1.31, 1, -0.29) 0.4s;
-webkit-transition: all 0.4s cubic-bezier(0, 1.31, 1, -0.29) 0.4s;
-moz-transition: all 0.4s cubic-bezier(0, 1.31, 1, -0.29) 0.4s;
transition: all 0.4s cubic-bezier(0, 1.31, 1, -0.29) 0.4s;
}
.box:hover .box-layer{
-webkit-transform: scaleX(1);
-moz-transform: scaleX(1);
-ms-transform: scaleX(1);
-o-transform: scaleX(1);
transform: scaleX(1);
-webkit-transition-delay: 0s;
-o-transition-delay: 0s;
-moz-transition-delay: 0s;
-ms-transition-delay: 0s;
transition-delay: 0s;
}
.box .box-content{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: transparent;
color: #fff;
opacity: 0;
padding-top: 25px;
-ms-transition: all 0.2s linear 0s;
-o-transition: all 0.2s linear 0s;
-webkit-transition: all 0.2s linear 0s;
-moz-transition: all 0.2s linear 0s;
transition: all 0.2s linear 0s;
}
.box:hover .box-content{
opacity: 1;
-webkit-transition-delay: 0.6s;
-o-transition-delay: 0.6s;
-moz-transition-delay: 0.6s;
-ms-transition-delay: 0.6s;
transition-delay: 0.6s;
}
.box .title{
font-size: 21px;
font-weight: 700;
text-transform: uppercase;
border-bottom: 1px solid #fff;
padding-bottom: 20px;
margin-top: 20px;
}
.box .description{
font-size: 14px;
font-style: italic;
margin: 15px 0;
padding: 0 10px;
}
.box .read-more{
display: block;
width: 120px;
background: #d73253 ;
padding: 10px 0;
font-size: 14px;
color: #fff;
text-transform: capitalize;
border-radius: 5px;
margin: 0 auto;
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}
@media only screen and (max-width:479px){
.box .box-content{ padding-top: 0; }
}



Теги:
0

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

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