I've hit a roadblock while trying to implement overlay fading in and out to cover a block created by some JavaScript code.
Here is a link to the project. When you click on any of the continents, a series of blocks with country flags will appear. You'll also notice a gray bar labeled "some content". I'd like that bar to remain hidden until a flag is clicked. Once a flag is clicked, I want the overlay to slide over it. Then, if you click outside the block, the overlay should slide out and disappear.
I attempted to set:
&__block-overlay {
....
opacity: 0;
....
}
and
&__block-overlay:active {
opacity: 0.7;
}
However, my attempts were unsuccessful.
If you have any suggestions or solutions, I would greatly appreciate it!!