I have a div. It rotated at -35 degree( set in CSS file) , I want to click it to rotate it back to 0 degree
here is my code JS file
$("div#words").on("click",function(e){
$(this).animate({
"height":"200",
"border-radius":"200"
},{duration:500,step:function(now,fx){
$(this).css("-ms-transform","rotate("+now+"deg)");
$(this).css("-webkit-transform","rotate("+now+"deg)");
$(this).css("transform","rotate("+now+"deg)");
}},function(e){
});
});
Now it rotate about 180 degree, how can i set it to a certain degree ?