5391 posts
  • Australia
  • Bought between 100 and 499 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 4-5 years
  • Interviewed on the Envato Notes blog
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Australia says

Is there a mthod that on ios devices ( which rely on click ) that hover effects appear as focussed ?

I am playing with some animated hover effects, but they dont operate on ios because they are initiated via hover.

So on ios I wondered if we could default to display the div effect in situ ( as if it was hovered ) does that make sense.

5391 posts
  • Australia
  • Bought between 100 and 499 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 4-5 years
  • Interviewed on the Envato Notes blog
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Australia says

Ok found a fix :)

$(document).ready(function() {
    $('.hover').bind('touchstart touchend', function(e) {
        e.preventDefault();
        $(this).toggleClass('hover_effect');
    });
});

Found here

tiberiualexander
tiberiualexander Recent Posts Threads Started
118 posts
  • Author had a Free File of the Month
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 3-4 years
  • Romania
  • Sold between 5 000 and 10 000 dollars
  • Bought between 1 and 9 items
tiberiualexander says

Thank you for posting the solution! I also needed this :)

by
by
by
by
by
by