<svg style="position: absolute; width: 0; height: 0;">
<filter id="goo">
<feGaussianBlur in="SourceGraphic" stdDeviation="30" />
<feColorMatrix
in="blur"
values="1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 30 -7
"
/>
</filter>
</svg>
<div class="hooks-main">
<div></div>
<div></div>
</div>
.hooks-main > svg {
display: none;
}
.hooks-main > div {
background: orangered;
opacity: 0.6;
position: absolute;
top: 20px;
left: 20px;
width: 300px;
height: 120px;
box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
}
.hooks-main > div::after {
content: "";
position: absolute;
top: 20px;
left: 20px;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.8);
}
.hooks-main > div:nth-child(2) {
width: 100px;
height: 300px;
}
.hooks-main {
position: absolute;
width: 100%;
height: 100%;
filter: url("#goo");
overflow: hidden;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.