i have a div that it has image content i wanna skew it when user click on div or image with delay .i use follow code but it dose not work. what is solution ?
thanks
$(function () {
$('#hd').bind('mousedown', function () {
var $elem = $(this);
$elem.animate({ " -webkit-transform": "skewX(40deg)" }, 250)
})
})
it does not work too
$(function () {
$('#hd').bind('mousedown', function () {
var $elem = $(this);
$elem.css({ " -webkit-transform": "skewX(40deg)"
})
})
})
Remove the extra whitespace:
The space before
-webkit-transformis what is causing it not to work.