I created a diamond through the sketch of CSS, which is located in the upper left corner of a circle.
I set overflow: hidden for the circle. How can the diamond still trigger cursor: pointer?
Here is the codepen of the project.
html
<div class='container'>
<div class='skew'></div>
</div>
css
.container {
position: relative;
z-index: 1;
margin-top: 150px;
margin-left: 300px;
width: 300px;
height: 300px;
border-radius: 50%;
border: 1px solid red;
overflow: hidden
}
.skew {
transform-origin: right bottom;
transform: skewX(45deg);
width: 150px;
height: 150px;
border: 1px solid blue;
cursor: pointer;
}

