IOS hover effect on tap and not tap

I always thought that hover effect on iOS devices can only be seen in full "click" (or "touch"), but then I found this page:

http://www.theverge.com/2013/2/19/4004250/sunrise-for-iphone-calendar-app-for-a-post-google-world

Here the hover effect is shown when I just click on the element (no delay) and goes away when I leave my finger - no full click required.

I do not understand. What's the trick?

+3


source to share


1 answer


I understood!

just add ontouchstart=""

to your body tag:



<body ontouchstart=""> ...

      

+6


source







All Articles