JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div class="button" id="circleToggle">+</div>
<div class="circle" id="circle1">Some data</div>
<div class="circle" id="circle2"></div>
</div>
CSS
.container {
background: #333;
position: relative;
height: 500px;
width: 500px;
}
.button {
position: absolute;
left:230px;
top:5px;
width: 40px;
height: 40px;
line-height: 40px;
font-size: 20px;
background: #fff;
display: inline-block;
border-radius:50%;
text-align: center;
}
.circle {
border-radius:50%;
border:1px dashed red;
display: none;
}
#circle1 {
position: absolute;
top: 150px;
left: 150px;
height: 200px;
width: 200px;
line-height: 200px;
text-align: center;
color: #fff;
}
#circle2 {
position: absolute;
top: 50px;
left: 50px;
height: 400px;
width: 400px;
}
JavaScript
$("#circleToggle").click(function(){
$("#circle1").fadeToggle( "slow");
$("#circle2").fadeToggle( "slow");
if( $("#circle1").is(":hidden") ) {
$("#circleToggle").html("+");
}
else {
$("#circleToggle").html("-");
}
});