I know, a very simple question, but I don't know!
I have:
.touch img{
-webkit-transform: scale(2);
}
How would I make that activate when someone clicks on the element?
Thanks!
I know, a very simple question, but I don't know!
I have:
.touch img{
-webkit-transform: scale(2);
}
How would I make that activate when someone clicks on the element?
Thanks!
$(function() {
$('#click').click(function() {
$('.touch img').css({'-webkit-transform' : 'scale(2)'})
});
});
This should work :)
Make it:
.touch img.clicked
And use the script:
$(".touch img").click(function(){this.addClass("clicked")});