Reputation: 67
I cant find out how to achieve this effect, I'm familiar with parallax effect, but how can I make this "clip-path" effect or whatever is it called, where circles are transparent so image background can be seen through it?
Upvotes: 0
Views: 56
Reputation: 64264
You can use box-shadow and border-radius
body {
background: linear-gradient(blue, lightblue);
}
html, body {
height: 100%;
}
.base {
width: 200px;
height: 200px;
overflow: hidden;
margin: 30px;
}
.inner {
width: 100px;
height: 100px;
margin: 10px;
padding: 40px;
border-radius: 50%;
box-shadow: 0px 0px 0px 1000px white;
color: white;
font-size: 40px;
}
<div class="base">
<div class="inner">TEST</div>
</div>
Upvotes: 1