My goal is to make the .panel-text element visible only when a user hovers over the panel. I attempted to use the overlay CSS class, but I encountered issues where the text either wouldn't show at all or would always be displayed. Here is what I have tried:
.panel-text {
display: none
}
.panel-overlay:hover .panel-text {
display: block
}
However, the above code always hides .panel-text. Another approach I took is shown below:
.panel-text { opacity: 0; }
.panel-overlay:hover .panel-text { opacity: 1; }
I also experimented with using .panel-title and .panel-button.
Any assistance on this matter would be greatly appreciated, as I have not been able to find a solution in other posts. We could even consider displaying an icon when .panel-text is hidden.
This is the desired outcome: Link