1
我有一个图像,当jQuery加载时,它旋转90deg一次。一旦图像被点击以旋转270度,我想旋转180度。jquery旋转值从0开始?
一旦再次点击它,我会添加另一个可以旋转它的函数,但是我不能这样做直到我可以停止从0deg开始的旋转。
$('#Options').click(
function() {
//$(this).stop().animate({ 'padding-left': (GetCLWidth) });
$('.Options_open').animate({ 90:borderSpacing: 180 }, {
step: function (currentStep) {
$(this).css('transform', 'rotate('+ currentStep +'deg)');
$(this).css('-ms-transform', 'rotate(' + currentStep + 'deg)');
$(this).css('-webkit-transform', 'rotate(' + currentStep + 'deg)');
},
duration: 2500
}, 'linear');
});
但是,这我在做什么。如果我旋转图片,它从0开始旋转180度。 – Karmaxdw 2013-05-03 18:14:25