UPDATE: Currently happening in Chrome browser.
I am facing an issue with my masonry layout which has multiple columns.
The Problem: Whenever I hover over any image in the second or third column and stretch the browser, the image disappears temporarily.
For example: Here's Jennifer Aniston (The woman in the middle of the second row disappears on hover).
https://i.sstatic.net/F6rCb.png
Desired result:
https://i.sstatic.net/OPabP.png
JSFiddle link for easy reference: https://jsfiddle.net/RohitTigga/3bvdhozc/2/
Code snippet below:
img {
max-width: 100%;
height: auto;
vertical-align: bottom;
}
.wrapper {
width: 92.5%;
padding: 1em;
margin: 0 auto;
}
.masonry {
-moz-transition: all .5s ease-in-out;
-webkit-transition: all .5s ease-in-out;
transition: all .5s ease-in-out;
-moz-column-gap: 30px;
-webkit-column-gap: 30px;
column-gap: 30px;
-moz-column-fill: initial;
-webkit-column-fill: initial;
column-fill: initial;
}
.masonry .brick {
margin-bottom: 30px;
}
.masonry .brick img {
-moz-transition: all .5s ease-in-out;
-webkit-transition: all .5s ease-in-out;
transition: all .5s ease-in-out;
//with react
margin: 20px 0px;
}
.masonry .brick:hover img {
//opacity: .75;
-moz-transform: scale(1.1);
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
.masonry.bordered {
-moz-column-rule: 1px solid #eee;
-webkit-column-rule: 1px solid #eee;
column-rule: 1px solid #eee;
-moz-column-gap: 50px;
-webkit-column-gap: 50px;
column-gap: 50px;
}
.masonry.bordered .brick {
padding-bottom: 25px;
margin-bottom: 25px;
border-bottom: 1px solid #eee;
}
.masonry.gutterless {
-moz-column-gap: 0;
-webkit-column-gap: 0;
column-gap: 0;
}
.masonry.gutterless .brick {
margin-bottom: 0;
}
@media only screen and (min-width: 1024px) {
.wrapper {
width: 80%;
padding: 2em;
}
.masonry {
-moz-column-count: 3;
-webkit-column-count: 3;
column-count: 3;
}
}
@media only screen and (min-width: 768px) and (max-width: 1023px) {
.wrapper {
width: 85%;
padding: 1.5em;
}
.masonry {
-moz-column-count: 2;
-webkit-column-count: 2;
column-count: 2;
}
}
HTML Below:
<div class="wrapper">
<h1 class="FredokaOne quote">Life's too short to wear boring clothes.</h1>
<div class="masonry">
<!-- Images go here -->
</div>
</div>
Need help fixing this issue? Please advise!