Closed briviere closed 8 years ago
You're aware that touch devices won't show a hover effect if the link causes the page to naviagate to another URL?
No I'm still learning about how hovereffects works on mobile devices. I mange to enable the image by putting "onclick=''" in the div which is good enough for now.
thanks
Brian
On Sun, Apr 17, 2016 at 4:29 PM, Ian Lunn notifications@github.com wrote:
You're aware that touch devices won't show a hover effect if the link causes the page to naviagate to another URL?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/IanLunn/Hover/issues/89#issuecomment-211108645
A touch device can't detect hover as there is no hovering cursor. An emulator may exhibit hover behaviour because it is used on a computer that does have a cursor. Some touch devices will emulate a hover effect when an element is lightly tapped or the finger is held in place a little longer than it would a tap. A hover is also triggered at the same time as a tap but if adding hover effects to a link, the browser will navigate to another page meaning the hover effect can't be seen anyway.
There are ways to work around this or disable hover effects for touch devices but we leave that up to the developer rather than trying to bake-in a one-size-fits-all solution to Hover.css.
I have the following html using hovereffect below. It works fine in chrome mobile iPhone 5 simulator but does not work on the actual iphone device in chrome or safari?
It works fine expect on iphone 5