<div class="container">
<div class="angle"></div>
<div class="content">
Kill designer<br>
Kill designer<br>
Kill designer<br>
Kill designer<br>
Kill designer<br>
Kill designer<br>
</div>
</div>
.container{
margin: 20px;
width: 300px;
box-shadow: 0 0 6px rgba(0,0,0,0.3);
border-radius: 20px;
position: relative;
box-sizing: border-box;
background: #fff0c5;
}
.container .content{
padding: 20px 36px;
position: relative;
z-index: 2;
}
.container:after{
content: "";
position: absolute;
top: 50%;
left: -43px;
width: 30px;
height: 30px;
border-radius: 0px;
transform: rotate(45deg) translateY(-50%);
}
.container .angle{
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
}
.container .angle:after{
content: "";
position: absolute;
top: 50%;
left: -30px;
width: 30px;
height: 30px;
box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
border-top-right-radius: 4px;
transform: rotate(45deg) translateY(-50%);
box-sizing: border-box;
}
.container:hover:before{
content: "";
position: absolute;
width: 100%;
height: 100%;
border: solid 2px red;
border-radius: 20px;
box-sizing: border-box;
}
.container:hover .angle:after{
border: solid 2px red;
}
body,.container .angle:after{
background: #dae2ff;
}
.container:after{
box-shadow: 0 0 6px 2px #dae2ff, 0 0 10px 4px #dae2ff, 0 0 2px 4px #dae2ff, 0 0 4px 5px #dae2ff;
background: #dae2ff;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.