Try adding this CSS:
.gb-container.gb-container-8407c2fd {
opacity: 0;
transition:all 0.3s ease;
flex: 1;
}
.gb-container.gb-container-50b02063:hover .gb-container.gb-container-8407c2fd {
opacity:1;
}
.gb-container.gb-container-50b02063 > .gb-inside-container {
height: 100%;
display: flex;
flex-direction: column;
}
The CSS is using the GB block’s unique ID, if the blocks are removed and re-added, the ID will change, the CSS will not work anymore.
So I would recommend adding CSS class to the parent container which has the background image, eg. bg-img-container
, to replace the gb-container-50b02063
in my code.
And add another CSS class to the child container which has the content and background color, eg. content-container
to replace the gb-container-8407c2fd
in my code.
https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/