I create a animation that works when I hover over it, but due to mobile reasons I want the animation to play when the user clicks or touches it.
Here is my js code that makes the hover work, but not sure how to make the onclick work.
$(document).ready(function() {
$('.phone').hover(function(){
$('.phone').addClass('phone-two');
},
function(){
$('.phone').removeClass('phone-two');
});
});
Here is a JSFiddle to explain it better.