<div class="jake" data-text="JAKE">JAKE</div>
.jake {
position: relative;
background: #ecf1f2;
color: #000;
padding: 20px 50px;
}
.jake:before {
background: #000;
color: #ecf1f2;
content: attr( data-text);
overflow: hidden;
position: absolute;
top: 0;
left: 0;
padding: 20px 50px;
clip-path: polygon(0 0, 60% 0%, 40% 100%, 0% 100%);
clip-path: polygon(0 0, 60% 0%, 40% 100%, 0% 100%);
}
/* Unnecessary code */
body {
font-family: sans-serif;
font-weight: 700;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-size: 200px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.