When I use this code, everything works fine:
document.getElementById('cube').style.webkitTransform = "rotateX("+xAngle+"deg) rotateY("+yAngle+"deg)";
But, when I use this jQuery code, it won’t work:
jQuery('cube').css('-webkit-transform', "rotateX("+xAngle+"deg) rotateY("+yAngle+"deg)");
Where is the difference?
it should be:
or