S
S
sabanovvv2015-02-03 22:00:16
JavaScript
sabanovvv, 2015-02-03 22:00:16

How to deal with :hover on touch devices?

There is a site where additional information appears in the portfolio when you hover.
How to adapt to touch devices so that when you click on a job, additional information appears?
uni.webj.esy.es

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Belkin, 2015-02-03
@BelkinVadim

You can use :focus (unless the element is a link to another page). Or add a class by clicking on the script (by clicking on the element itself, if it is not a link, or place an additional button on the block with the work, by clicking on which the class will be added).
If there are links or any clickable elements in the information that appears, then it’s better to open it with a script, because :focus, :hover, :active won’t work (they won’t let you click in the block that appears, it will simply hide)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question