Hover Effect Style 25

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

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

Lorem ipsum dolor

Lorem ipsum dolor

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-25/img-1.jpg" alt="">
<div class="over-layer">
<h4 class="title">Lorem ipsum dolor</h4>
<ul class="links">
<li><a href="#" class="fab fa-facebook"></a></li>
<li><a href="#" class="fab fa-twitter"></a></li>
<li><a href="#" class="fab fa-google-plus"></a></li>
<li><a href="#" class="fab fa-instagram"></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>

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

.box{
overflow: hidden;
position: relative;
}
.box img{
width:100%;
height: auto;
}
.box .over-layer {
position: absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(241, 70, 70, 0);
transition: all 0.35s linear;
}
.box:hover .over-layer{
background:rgba(241, 70, 70, 0.7);
}
.box .title{
position: absolute;
top:10%;
left:10%;
color:#fff;
font-size:20px;
letter-spacing:1px;
text-transform: uppercase;
transition:all 0.3s ease 0s;
}
.box .links{
width:80%;
height:0px;
position:absolute;
top:20%;
left:10%;
border:1px solid #fff;
padding: 0;
margin:10px 0 0 0;
background:#fff;
list-style:none;
transition: all 0.40s linear 0s;
}
.box:hover .links{
height:20%;
}
.box .links li{
display:inline-block;
padding:18px 15px;
}
.box .links li a{
font-size:20px;
color:#333;
opacity:0;
transition: all .40s linear 0s;
}
.box:hover .links li a{
opacity: 1;
}
.box .links li a:hover{
text-decoration:none;
color:#c54e50;
}
@media only screen and  (max-width: 990px){
.box{
margin-bottom:15px;
}
}



Теги:
0

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

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