Sign in
Log inSign up

Best way for hover effects on mobile/touch devices?

DK's photo
DK
·Dec 4, 2017

I have a div that increases its width when you hover on it. It won't work on a smartphone or tablet. The best way would be to make hover to click . But how should I do it? Sth like @media (max-width: 700px) or is there any good way to make it clickable on a touchscreen?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct