emulate
v1.0.2
Published
Tiny JavaScript library to emulate :active styles on mobile
Downloads
105
Readme
emulate.js
What is this?
A tiny JavaScript library to emulate :active
styles on mobile devices.
Why?
Because -webkit-tap-highlight-color
is ugly and almost always hidden with a transparent color.
Seriously?
Yes. Everything must be modularized and served over a CDN.
Demo?
Notes
I did not blatantly copy and paste this code from CSS-Tricks. The original version was a jQuery snippet which I learned to adapt for use without jQuery. Upon a quick Google search, I realized CSS-Tricks already did this in 2011. So I thought I might as well credit them.
Licensed under CSS-Tricks.