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

前端 未结 2 1533
礼貌的吻别
礼貌的吻别 2020-11-30 18:31

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

相关标签:
2条回答
  • 2020-11-30 19:17

    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

    0 讨论(0)
  • 2020-11-30 19:18

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

    a {
        -webkit-tap-highlight-color: transparent;
    }
    
    0 讨论(0)
提交回复
热议问题