Struggling to use clip-path to create a QR code scanner effect on an image. I've tried multiple approaches but can't seem to get it right. Here's what I'm aiming for:
https://i.stack.imgur.com/UFcLQ.png
I want to clip a square shape from the image and slightly dim the unclipped part. However, when I apply the clip path, this is what I end up with:
Is there a proper way to achieve this effect? Any guidance would be appreciated. Thank you.