Hover Effect Style 216

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

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

Web developer

Steve Thomas

заговолокer

Kristina

заговолокer

Williamson

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

<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css /> -->
<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-216/img-1.jpg" alt="">
<div class="box-content">
<span class="post">Web developer</span>
<h3 class="title">Steve Thomas</h3>
</div>
<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 class="col-md-4 col-sm-6">
<div class="box">
<img src="https://fokit.ru/demo/images/hover-effect/hover-effect-style-216/img-2.jpg" alt="">
<div class="box-content">
<span class="post">Web designer</span>
<h3 class="title">Kristina</h3>
</div>
<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>

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

:root{
--color_0: #000;
--color_1: #fff;
--color_2: #B0C333;
--color_3: #46A450;
}
.box{
font-family: 'Roboto Slab', serif;
border-radius: 5px;
overflow: hidden;
position: relative;
z-index: 1;
transition: all 0.3s ease 0s;
}
.box:after{
content: '';
background: linear-gradient(to right,var(--color_2),var(--color_3));
height: 20px;
border-radius: 5px 5px 0 0;
position: absolute;
bottom: -20px;
right: 30px;
left: 30px;
z-index: 1;
transition: all 0.3s ease 0s;
}
.box:hover:after{ bottom: 0; }
.box img{
width: 100%;
height: auto;
transition: all 0.3s ease 0s;
}
.box:hover img{
opacity: 0.7;
filter: grayscale(50%) hue-rotate(180deg);
transform: scale(1.2);
}
.box .box-content{
background-color: var(--color_1);
border-radius: 5px;
overflow: hidden;
position: absolute;
left: 30px;
right: 30px;
bottom: 100%;
z-index: 2;
transition: all 0.3s ease 0s;
}
.box:hover .box-content{ bottom: 66px; }
.box .title{
color: var(--color_1);
background: linear-gradient(to right,var(--color_2),var(--color_3));
padding: 10px;
margin: 0;
}
.box .post{
color: var(--color_3);
font-size:18px;
font-weight: 400;
text-transform: capitalize;
margin: 0 10px 5px;
display: block;
}
.box .icon{
padding: 0;
margin: 0;
list-style: none;
position: absolute;
bottom: 25px;
right: 40px;
}
.box .icon li{
margin-right: 10px;
display: inline-block;
transform: translateY(100px);
transition: all 0.3s ease 0.15s;
}
.box .icon li:last-child{
margin-right: 0;
transition: all 0.3s ease 0.3s;
}
.box:hover .icon li{ transform: translateY(0); }
.box .icon li a{
color: var(--color_3);
background-color: var(--color_1);
font-size: 18px;
text-align: center;
line-height: 30px;
height: 35px;
width: 35px;
border: 2px solid var(--color_3);
border-radius: 50%;
display: block;
transition: all 0.3s ease 0s;
}
.box .icon li a:hover{
color: var(--color_1);
background-color: var(--color_3);
border-color: var(--color_1);
box-shadow: 0 0 5px var(--color_0);
}
@media only screen and (max-width:990px){
.box{ margin-bottom: 30px; }
}
@media only screen and (max-width:479px){
.box .title{ font-size: 20px; }
}



Теги:
0

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

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