shared

How to Map Mouse Position in CSS

A murb'ed feed, posted more than 3 years ago filed in css, programming, front-end, mouse & fx.

A pure CSS solution using CSS variables to track mouse position and manipulate the CSS variables accordingly, allowing for reusing the dynamicly updated CSS variables for moving elements or perform other pure CSS effects.

Nice line of thinking.

Go to the original link.