Re: [csswg-drafts] Proposal: Expose Pointer Position Information on Hovered Elements (#6733)

There have been a lot of cases where I used JS strictly to get the pointer position & store it in `--x`, `--y` variables I then used in the CSS.

First that comes to mind is this entry & exit aware [button `:hover` effect](https://codepen.io/thebabydino/pen/PoxVZWg). Or this [highlight effect](https://codepen.io/thebabydino/pen/PojJmzo).

I also came across this [mouse mask effect](https://codepen.io/alig01/pen/WNLGogV), which relies on JS for other things as well, but can be reduced to [a version](https://codepen.io/thebabydino/pen/gOqYdJd) that only needs the relative position of the cursor.

-- 
GitHub Notification of comment by thebabydino
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6733#issuecomment-1772956851 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 20 October 2023 15:28:53 UTC