Hacker News new | ask | show | jobs
by nimbix 5395 days ago
Could be useful for complex cases, but "pointer-events: none" CSS usually does the trick just fine.
1 comments

That's really cool, I didn't know about that. Thanks!

The difference here is that with alphaPun.ch you're only clicking through the transparent parts of the image; the opaque parts still block clicks. If I understand that document correctly, pointer-events would only allow you to click through the whole image. (Except with SVG?) Is that right?

Yes, that's right; pointer-events in HTML can only be applied to whole images.