Potentially Coming to a Browser :near() You
SMRTR summary
A proposed :near() CSS pseudo-class would match elements when a pointer comes within a specified distance, enabling smoother visual effects and interactions. The proposal suggests using Euclidean distance calculations to determine proximity. Use cases include dimming or hiding elements until approached, improving hover-triggered overlays, and enhancing accessibility by expanding interaction zones beyond precise element boundaries.
SMRTR provides this summary for quick context. The original article belongs to Daily.dev.
Read the original article