Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad Safari: How to disable the quick blinking effect when a link has been hit

Is there any way to disable that?
I only mean in the browser... When you click a link or a button or a div that has a click function on it, it flickers a grey box where you clicked quickly. How do i prevent this?

like image 221
cat Avatar asked Aug 18 '10 20:08

cat


People also ask

Where is the Safari menu on iPad?

To get to Safari Settings on an iPad, you open the Settings App, and scroll down to "Safari".


2 Answers

You could set a transparent color to the -webkit-tap-highlight-color property of that element.

a {
    -webkit-tap-highlight-color: transparent;
}
like image 105
kennytm Avatar answered Oct 31 '22 20:10

kennytm


Using mobile Safari in Phonegap, only this worked:

* {  -webkit-backface-visibility:  hidden;
     -webkit-tap-highlight-color:  transparent;
  }

Source: iPhone WebKit CSS animations cause flicker

Also, on the main panel, enable rendering:

div.myPanelOrWhatever 
  {
      -webkit-transform: translate3d(0, 0, 0)
  }

Source: Prevent flicker on webkit-transition of webkit-transform

like image 10
redolent Avatar answered Oct 31 '22 18:10

redolent