jsfiddle example found on wwwjquery如何知道是什么
jquery如何知道是什么?
$('#myDiv').animate({ textIndent: 0 }, {
step: function(go) {
$(this).css('-moz-transform','rotateY('+go+'deg)');
$(this).css('-webkit-transform','rotateY('+go+'deg)');
$(this).css('-o-transform','rotateY('+go+'deg)');
$(this).css('transform','rotateY('+go+'deg)');
},
duration: 1000,
complete: function(){ alert('done') }
});
http://api.jquery.com/animate/ – j08691
了'step'回调的第一个参数是在每个步骤中的动画属性的数值。由于jQuery正在进行计算,因此jQuery在调用发送给“step”选项的回调函数时可以使用该值。 –
“go”标签用于Go编程语言。 – peterSO