JSFiddle - React, Tailwind, and code Playground
HTML
<body onload="makeVisible();">
<span id="right_link" onclick="makeVisible();">>>></span>
<div id="container">
</div>
<div id="inner">
<div>
<span>Info will go here.</span>
<p>More info</p>
<div class="link" onclick="makeVisible();">Back</div>
</div>
</div>
</body>
CSS
#container {
background-color: #ffffff;
height: 100%;
opacity: 0.75;
position: absolute;
width: 100%;
visibility: hidden;
top: 0;
}
#inner {
background-color: #888888;
border-radius: 100%;
height: 500px;
left: 50%;
position: absolute;
top: 50%;
width: 500px;
transform: translate(-50%, -50%);
z-index: 100;
visibility: hidden;
}
#inner > div {
color: #ffffff;
height: 68.5%;
left: 50%;
padding-top: 20px;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
width: 68.5%;
}
#inner > div > .link {
bottom: 0;
display: block;
position: absolute;
right: 0;
text-align: center;
width: 100%;
}
#inner > div > span {
display: inline-block;
}
JavaScript
function makeVisible() {
var con = document.getElementById('container');
var inn = document.getElementById('inner');
if (con.style.visibility == "hidden") {
con.style.visibility = "visible";
inn.style.visibility = "visible";
} else {
con.style.visibility = "hidden";
inn.style.visibility = "hidden";
}
}