$(".img2").click(function(){
i=parseInt((Math.random()+5)*360)+i; var aa=i+"deg" console.log(aa)$(".img1").css({transform:"rotate("+i+"deg)"});$(".img1").css({transition:"all 3s"});
})