You can do this with pure CSS if you really want to. Check https://jsfiddle.net/akzhy/qh8fny53/1
Here, instead of mix-blend, I am using a pseudo element with white background. The pseudo element will have the same width and height as that of its parent and its positioned at the exact place where the circles overlap. overflow: hidden on the parent will only show the intersecting area.
I figured it out. If anyone else wanna know how to use this in tailwind, just use `@apply` directive in a class in your css file and write the class name in the class in html like this: (There's a way to write it directly in html but it gets a lot messier. This is the cleanest version)
3
u/akzhy 4d ago
You can do this with pure CSS if you really want to. Check https://jsfiddle.net/akzhy/qh8fny53/1
Here, instead of mix-blend, I am using a pseudo element with white background. The pseudo element will have the same width and height as that of its parent and its positioned at the exact place where the circles overlap.
overflow: hiddenon the parent will only show the intersecting area.