1.0.2 • Published 7 years ago

emulate v1.0.2

Weekly downloads
66
License
SEE LICENSE IN LI...
Repository
github
Last release
7 years ago

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?

Here's the CodePen.

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.