Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It <strong>seems</strong> that when the iPhone user touches the box, first the "hover" event gets fired (so the grey box is displayed always) and then the "click" event gets fired, so the user is directed to the link if within the 80% area. The problem is that this two events happen sequentially and immediately (unlike in the computer), so you cannot even see the grey box because the page is already being re-directed to a new page.</p> <p>Have you tried also displaying the grey box on the link's onclick event? I mean, copying the styling procedure you do on the "hover" event and putting it in the link's "click" event.</p> <p><strong>Update to answer your comment:</strong></p> <p>You can detect if the user is on a mobile device with something such as this Javascript:</p> <pre><code>function isMobileDevices() { return navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) !== null } </code></pre> <p>And act differently in that case. For example, and this is pretty ugly, do the link opening via Javascript on the "click" event instead of using a real <code>&lt;a&gt;</code> link, but if we are in a mobile device, only open the link when it is the second or above time the user clicks it. For this, you will have to track every box status, little bit laborious.</p> <p>Probably better alternative is to research about <a href="https://developer.mozilla.org/en-US/docs/DOM/Touch_events" rel="nofollow">touch events</a> and manage those events accordingly.</p> <p><strong>Update</strong></p> <p>Looking at your website's source, I can't see that your are using <code>display:none</code>, as you mentioned in your question. I see <code>opacity:0</code>, which is different. Have you tried really using <code>display:none</code> until you need to start animating the opacity?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload