I am currently in the planning stages of a project, and I'm facing an issue with a click and hold event. My goal is to have a div that allows me to click through it (meaning I can still interact with elements underneath), while having an opacity of around 0.7, positioned over an image. This setup will enable me to click on the image and drag it across a canvas.
Is there a way to implement a click and hold event so that when I click on the image to move it, the opacity of the click-through div changes to 0 or becomes hidden altogether? And then revert back to 0.7 when I release the click?
Any suggestions on how to achieve this would be greatly appreciated!