Skip to content

CSS :hover on Touch Screens

Use:

@media(hover: hover) and (pointer: fine) {}

Spec not finalized, but so far so good.

Source: https://medium.com/@mezoistvan/finally-a-css-only-solution-to-hover-on-touchscreens-c498af39c31c