Can anyone help me achieve a shadow effect like the one shown in this image example? I've attempted to use the after
pseudo element, radius, and clip, but haven't been able to get the desired result.
https://i.sstatic.net/pqUtb.png
.page{
width: 100%;
display: flex;
justify-content: center;
min-height:100%;
background: #ebebeb;
padding-top: 100px;
padding-bottom: 100px;
}
.sidebar{
width: 260px;
height: 500px;
background: #ebebeb;
position: relative;
}
.sidebar::after{
content: '';
position: absolute;
top: 0;
bottom: 0;
height: 500px;
right: 0;
width: 40px;
box-shadow: 5px 0 20px 0 rgba(0, 0, 0, 0.4);
display: block;
border-radius: 50% / 20px;
clip: rect(auto, 80px, auto, 40px);
}
<div class="page">
<div class="sidebar">Sidebar</div>
<div class="content"></div>
</div>