I'm working on a project where I need to make a div that must have 3 random holes on its border to make it transparent.
The problem I am facing is that for 2 holes I am using -webkit-mask with radial gradient to create 2 transparent holes of 20px. My question is when I try to create a third hole, does anyone know how to do this?
I have attached an image with the model that I need to copy. What I want is this, make 3 holes in the div
Create more complex masks using themask-compositeproperty:
You can combine multiple
radial-gradient
to create more "holes" or effects, please refer toThis solutionI posted two days ago, aimed at creating multiple A "loophole".The next challenge will be shadows, but prefer using
filter: drop-shadow
and wrapper components.box-shadow
does not apply to-webkit-mask
/mask
.Here is an example of building a ticket-like element in pure CSS: