Is there a way to create a jQuery plugin or JavaScript script that automatically loops through each CSS hover effect (from an external stylesheet) and binds it with a double tap event?
- Tap 1 - Triggers the CSS :hover effect
- Tap 2 - Acts as a click (follows a link or performs a form action)
If this functionality doesn't already exist, is it possible to develop it and what are the guidelines for doing so?
EDIT:
Just to clarify, I'm not looking for a double tap. Tap 1 is equivalent to a single tap, just like Tap 2. The time between the two taps can be anywhere from instantly to up to 3 minutes, depending on the user.
No touch interaction:
- :hover -> element is made visible
- click -> follows a link or other action
Touch interaction (iOS):
- Tap 1 -> element becomes visible
- Tap 2 -> follows a link or other action