【发布时间】:2015-04-03 22:41:41
【问题描述】:
谁能解释一下CSS rotation cross browser with jquery.animate()中的$({deg: 0})是什么意思?
例如
$({deg: 0}).animate({deg: angle}, {
duration: 2000,
step: function(now) {
// in the step-callback (that is fired each step of the animation),
// you can use the `now` paramter which contains the current
// animation-position (`0` up to `angle`)
$elem.css({
transform: 'rotate(' + now + 'deg)'
});
}
});
如果您能向我展示相关的 jQuery 官方文档,我将不胜感激。
【问题讨论】:
-
我不太了解这里的否决票,似乎是合理的问题,恕我直言
-
我很惊讶以前没有人问过这个问题(我在 SO 上看到过),但它有点晦涩难懂。好问题:)
标签: jquery