Fix Homepage collage's active photo effect while hover
- Change method and use a class on collage itself fading all photos, then highlight the one being hovered - For some reason the content inside was conflicting the mouseenter event
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
color: $color-cream;
|
||||
pointer-events: none;
|
||||
font-size: clamp(#{rem(12px)}, 1.5vw, #{rem(14px)});
|
||||
|
||||
@include bp (sm) {
|
||||
|
||||
@@ -191,10 +191,18 @@
|
||||
}
|
||||
|
||||
// Not hovered
|
||||
&.is-inactive {
|
||||
&.is-hovered {
|
||||
img {
|
||||
opacity: 0.5;
|
||||
opacity: 1.0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Mouse over collage
|
||||
&.is-hovering {
|
||||
.photo-card img {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user