JSFiddle - React, Tailwind, and code Playground
by fxi
HTML
<svg class="blobs" width="100%",height="100%">
<circle class="blob" r=50 rx=20 ry=20 stroke="green" fill="red" ></circle>
</svg>
CSS
body,
html,
.blobs {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
body {
-webkit-filter: contrast(50);
filter: contrast(50);
background: black;
}
.blobs {
background: inherit;
}
.blob {
filter: blur(15px);
/* width: 50px; */
/* height: 50px; */
background-color: #537298;
/* border-radius: 50%; */
/* position: absolute; */
/* top: 0px; */
/* left: 0px; */
}
.blob:before,
.blob:after {
content: "";
position: absolute;
width: 100px;
height: 100px;
left: 50%;
top: 50%;
margin: -50px;
background: rgba(224, 160, 245, 0.25);
border-radius: 50%;
-webkit-filter: blur(10px);
filter: blur(10px);
}