Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <li>
- <div class="pic">
- <div class="overlay touch">
- <div class="content">extra content here</div>
- </div>
- <img src="image.jpg" alt="" >
- </div>
- </li>
- $(".touch").on("mouseenter mouseleave touchstart", function(e){
- if(e.type == 'touchstart') {
- $(this).off('mouseenter mouseleave');
- }
- $(this).toggleClass("hover");
- });
Add Comment
Please, Sign In to add comment