I am working with a structure that looks like this:
.sectors-column-right {
float: right;
width: 800px;
height: 796px;
position: relative;
}
.sectors-modal {
background: #fff;
width: 764px;
height: 500px;
position: absolute;
top: 58px;
right: 18px;
z-index: 1111;
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
<div class="sectors-column-right">
<div class="sectors-column">
</div>
<div class="sectors-column">
</div>
<div class="sectors-modal">
</div>
</div>
Is there a way to make the .sectors-modal
element animate outwards (on both sides simultaneously) when clicked? Can this be achieved solely with CSS, or do I need JavaScript?