JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<h1>Mario Mothefucker</h1>
<div class="el">
<img class="el__image-shadow" src="https://freepngimg.com/thumb/mario/20698-7-mario-transparent-background.png" alt="">
<img class="el__image" src="https://freepngimg.com/thumb/mario/20698-7-mario-transparent-background.png" alt="">
<div class="el__lines">
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
<b></b>
</div>
</div>
</div>
<style>
@import url('https://fonts.googleapis.com/css?family=Montserrat');
</style>
CSS
.container {
display: flex;
justify-content: space-between;
align-items: center;
overflow: hidden;
padding: 0 30px;
max-width: 600px;
margin: 0 auto;
border-radius: 10px;
box-shadow: 0 6px 10px 0 rgba(255, 0, 0, 0.25);
}
h1 {
z-index: 1;
position: relative;
}
/**/
.el {
width: 200px;
height: 200px;
flex: 0 0 200px;
margin: 30px;
background: #F44336;
border-radius: 100%;
box-shadow: 0 0 0 50px rgba(244, 67, 54, 0.5), 0 0 0 30px rgba(244, 67, 54, 0.5);
position: relative;
z-index: 0;
display: flex;
align-items: center;
justify-content: center;
}
.el__image-shadow,
.el__image {
max-width: calc(100% - 60px);
max-height: calc(100% - 60px);
}
.el__image-shadow {
position: absolute;
z-index: 1;
filter: blur(20px) saturate(2);
transform: translate(-10px, 15px);
}
.el__image {
position: relative;
z-index: 2;
filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.25)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}
.el__lines b {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
border-radius: 100%;
border: 1px solid rgba(244, 67, 54, 0.5);
}
.el__lines b:nth-child(1) {
width: calc(100% + 125px);
height: calc(100% + 125px);
opacity: 1;
}
.el__lines b:nth-child(2) {
width: calc(100% + 150px);
height: calc(100% + 150px);
opacity: .95;
}
.el__lines b:nth-child(3) {
width: calc(100% + 175px);
height: calc(100% + 175px);
opacity: .9;
}
.el__lines b:nth-child(4) {
width: calc(100% + 200px);
height: calc(100% + 200px);
opacity: .85;
}
.el__lines b:nth-child(5) {
width: calc(100% + 225px);
height: calc(100% + 225px);
opacity: .8;
}
.el__lines b:nth-child(6) {
width: calc(100% + 250px);
height: calc(100% + 250px);
opacity: .75;
}
.el__lines b:nth-child(7) {
width: calc(100% + 275px);
height: calc(100% + 275px);
opacity: .7;
}
.el__lines b:nth-child(8) {
width: calc(100% +...