<main>
<div class="photo">
<div class="filter"></div>
</div>
<h1>Sir. Darwin</h1>
<p>306 · 891 · 364</p>
<button>Access details</button>
</main>
.photo {
width: 120px;
aspect-ratio: 1;
border-radius: inherit;
box-shadow: 0 0 6px rgb(218 122 67/ .4), inset 0 0 6px #ccc;
background: center/cover url("photo-1569591159212-b02ea8a9f239?q=80&w=200");
filter: brightness(120%) saturate(1.2);
.filter {
height: 100%;
border-radius: inherit;
backdrop-filter: blur(10px) brightness(110%);
mask-image: radial-gradient(white 5px, transparent 6px);
mask-size: 10px 10px;
transition: backdrop-filter .3s linear;
}
&:hover .filter {
backdrop-filter: none;
mask-image: none;
}
}
main {
width: 300px;
height: 400px;
padding-block: 60px;
border-radius: 12px;
box-sizing: border-box;
box-shadow: 0 0 16px #eee;
background: center/cover url("photo-1658579126739-03385cb1749b?q=80&w=400");
display: flex;
flex-direction: column;
place-items: center;
place-content: space-evenly;
h1{
font-size: 1.5em;
font-weight: 700;
margin-bottom: 0;
}
p {
font-size: 1.1em;
font-weight: 500;
margin-top: -10px;
}
button {
background: transparent;
backdrop-filter: blur(10px) brightness(110%);
box-shadow: inset 0 0 20px rgb(240 240 241 / .2);
padding-block: 6px;
border: none;
border-radius: inherit;
font-size: 1.05em;
font-family: poppins;
}
}
body {
height: 100vh;
margin: 0;
display: grid;
place-content: center;
place-items: center;
font: 12px 'poppins';
user-select: none;
-webkit-user-select: none;
cursor: default;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.