<div class="images">
<img src="https://i.ytimg.com/vi/OoOQM8pgqcM/maxresdefault.jpg" alt="">
</div>
html,
body {
margin: 0;
}
.images {
max-width: 560px;
margin: 10px auto;
height: 340px;
position: relative;
background: transparent;
overflow: hidden;
border-radius: 6px;
box-shadow: 0 0 30px #ccc;
}
.images:after {
content: "";
width: 80%;
height: 100%;
background: radial-gradient(
circle at right center,
transparent 40%,
#ffeb68 40%,
#ffeb68 50%,
#ffde02 50%
);
position: absolute;
top: 0;
left: 0;
}
img {
display: block;
width: 60%;
height: 100%;
margin-left: auto;
object-fit: cover;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.