Hover Interaction
#CSS#
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: #111;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.gallery {
display: flex;
gap: 0.5rem;
overflow: hidden;
}
.photo {
width: 80px;
height: 120px;
background-size: cover;
background-position: center;
border-radius: 10px;
transition: all 0.5s ease;
filter: grayscale(1) brightness(0.6);
cursor: pointer;
}
.gallery:hover .photo {
transform: scale(0.9);
filter: grayscale(1) blur(2px) brightness(0.4);
}
.gallery .photo:hover {
transform: scale(1.6) rotateY(10deg);
z-index: 10;
filter: none;
}