4 ms·
This question crossed my mind too. Anyone have a solution? On the other hand, I just learned the technique of using psuedo-classes early in the css selector ch
by calebmpeterson 16y ago
This question crossed my mind too. Anyone have a solution?
On the other hand, I just learned the technique of using psuedo-classes early in the css selector chain. Sweet!
- gojomo 16y agoThe solution I've used requires Javascript. It detects when on a touch screen, and if so, adds a CSS class to one default item that gives it the same display-characteristics (including showing hidden controls and shading) as if it were being moused-over. Then, set it so any touch on other eligible elements moves this 'current' class. In some ways, this could be a clearer model for pointer environments, too: reveal the hidden controls on at least one element at the start, and adjust the one full-revealed item as the pointer moves. This requires Javascript, and is a bit more cluttered, but won't leave anyone in the dark about what's possible.