クリックするたびに要素を 5 度ずつ回転させるボタンが必要です。私はこの種のことをボーダー幅で次のようなもので行うことができました
$(document).on('click', '.brdr_width_up', function() {
$(ws.currentCell).css({'border-top-width' : '+=1', 'border-right-width' : '+=1','border-bottom-width' : '+=1','border-left-width' : '+=1'});
});
しかし、同じ考え方は transform:rotate: ではうまくいかないようです:
$(document).on('click', '.rotate_cw', function() {
$(ws.currentCell).css({'-webkit-transform': 'rotate(+=5deg)'});
$(ws.currentCell).css({'-moz-transform': 'rotate(+=5deg)'});
var deg = $(ws.currentCell).css({'-moz-transform': 'rotate()'});
});
そして、上記の var 行は現在の回転を戻さないので、追加できます。
これを行う方法を知っている人はいますか?
ありがとう