Untitled
unknown
css
3 years ago
1.6 kB
16
Indexable
* {
margin: 0;
padding:0;
box-sizing: border-box;
font-size: 16px;
font-weight: 100;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #F0F0F0;
font-family: 'Manrope';
}
.item-wrapper {
display: flex;
gap: 40px;
}
.item {
position: relative;
width: 460px;
height: 300px;
border-radius: 32px;
overflow: hidden;
transition: .3s ease;
}
.img-wrapper {
position: relative;
overflow: hidden;
}
.img-wrapper::before {
content: '';
position: absolute;
top: 150px;
display: block;
width: 460px;
height: 300px;
background: linear-gradient(rgba(255, 0, 0, 0), black);
opacity: 0;
transition: .4s ease;
}
.item:hover .img-wrapper::before {
opacity: 1;
}
.item-img {
object-fit: cover;
}
.item-text {
position: absolute;
bottom: 0;
padding: 0 0 28px 36px;
transform: translateY(100px);
opacity: 0;
color: #FFFFFF;
transition: .3s ease;
}
.text-title {
font-size: 28px;
margin: 0 0 4px 0;
}
.text-desc {
width: 298px;
margin: 0 0 14px 0;
opacity: .8;
}
.text-date {
opacity: .5;
}
.item:hover .item-text {
transform: translateY(0);
opacity: 1;
transition: .3s ease;
}
.item:hover {
transform: scale(1.1);
}
.item:hover ~ .item:not(:hover) {
filter: blur(10px);
background-color: red;
transform: scale(0.9);
}Editor is loading...