CSS hover only where supported

This is super handy. You can use @media to detect hover support, so then, your hover states won’t get “stuck” on touch/mobile.

Big props to @NickColley for sharing this.

https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover#Example

Hi 👋
I’m Andy, a freelance web designer

I’m currently looking to book web design, training and consultancy projects from November 2019, onwards.

Hire me