Add hover transitions to gallery

This commit is contained in:
Ferit Yiğit BALABAN
2022-07-27 17:28:58 +03:00
parent 116565dc94
commit 76d238517f

View File

@@ -1,9 +1,14 @@
@use "../mixins";
#fullscreen {
margin: 0;
padding: 0;
display: none;
align-items: center;
justify-content: center;
width: 99vw;
width: 100%;
height: 100vh;
background: black;
#fullscreen-img {
max-width: 100%;
@@ -19,15 +24,32 @@
flex-wrap: wrap;
justify-content: center;
align-items: center;
overflow: hidden;
.photo {
.photo-container {
margin: 1vh 1vw;
width: 25%;
height: 25%;
cursor: pointer;
overflow: hidden;
&:hover {
filter: brightness(1.3);
.photo {
width: 100%;
height: 100%;
cursor: pointer;
transition: 750ms all ease-in-out;
filter: brightness(80%);
&:hover {
filter: brightness(100%);
transform: scale(1.3);
}
@include mixins.mx_ismobile {
&:active {
filter: brightness(100%);
transform: scale(1.3);
}
}
}
}
}