<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="card">
<div id="circle">
<h2>Leon<br/>Forster-Hulst</h2>
<p>Student, Father, Something or Other...</p>
<div class="fa fa-bomb fa-2x"></div>
</div>
</div>
html, body {
height: 120vh;
background: lightgrey;
font-family: sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
}
.card {
position: relative;
display:flex;
align-items: center;
justify-content: center;
flex-direction: column;
height: 380px;
width: 380px;
border-radius: 20px;
background-color: white;
box-shadow: 10px 0 30px rgba(0,0,0,0.5);
overflow: hidden;
}
#circle {
height: 100%;
width: 100%;
border-radius: 50%;
background-color: black;
margin-top: -350px;
margin-right: 250px;
}
h2 {
position: absolute;
left: 0;
top: 0;
margin: 20px 0 0 20px;
font-size: 1.1em;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 15px;
color: #ffffff;
mix-blend-mode: difference;
}
p {
position: absolute;
left: 0;
bottom: 0;
margin: 0px 20px 65px 20px;
font-size: 1em;
color: #ffffff;
mix-blend-mode: difference;
}
.fa {
position: absolute;
right: 0;
bottom: 0;
margin: 0px 20px 23px 20px;
color: #ffffff;
mix-blend-mode: difference;
}
.fa:hover {
transform: scale(1.2);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.