【发布时间】:2014-05-03 04:30:43
【问题描述】:
如果元素当前正在旋转,有谁知道如何停止 .click 函数的工作。
$(".right").click(function(e) {
angle1 = getRotationDegrees($('.circle'));//find current rotation angle
newrot = angle1-90;//take 90 degrees from current rotation
if($('.circle').is(':animated')) return;
$('.circle').transition({ rotate: newrot+'deg',
duration: 500 });
});
【问题讨论】:
标签: jquery