You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.0 KiB

6 years ago
.instagram {
margin: 0;
display: flex;
justify-content: space-between;
flex-direction: row;
flex-wrap: wrap;
flex-flow: row wrap;
align-content: flex-end;
}
.instagram li {
display: inline;
width: 180px;
height: 180px;
margin-top: 0.8rem;
}
.instagram li a {
display: block;
position: relative;
overflow: hidden;
width: 100%;
height: 100%;
}
.instagram li a img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transform: scale(1);
transition: all 1s;
}
.instagram li:hover a img {
transform: scale(1.05);
}
.instagram li a span {
display: block;
position: absolute;
left: 0;
top: 0;
width: 100%;
padding: 0.5rem;
font-size: 80%;
font-weight: 600;
color: #222;
background: rgba(243, 171, 0, 0.7);
text-align: center;
opacity: 0;
transform: translateY(-20px);
transition: all 0.3s;
}
.instagram li:hover a span {
transform: translateY(0px);
opacity: 1;
6 years ago
}