Answer the question
In order to leave comments, you need to log in
How to implement hover effect on mobile devices?
there is such a layout with a hover effect in the upper right block.
for this effect to work on a mobile device, an ontouchstart event has been added:
<div class="col-sm-4 col-sm-offset-8 flip-container" ontouchstart="this.classList.toggle('hover');">
Answer the question
In order to leave comments, you need to log in
Well, do another ontouchend
PS: that's the idea, with each tap the effect should change.
For mobile devices, the behavior of the element will have to be redone.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question