$(element).delay(2000).animate(
{
scale: 1,
},
{
duration: 1000,
step: function(now) {
scaleVal = now;
$(element).attr("transform", "translate(" + centerX + " " + centerY + ") scale(" + scaleVal + ") translate(" + (-centerX) + " " + (-centerY) + ")");
}
}
);
现在比例值从 0 开始并以 1 结束,但我想从 0.5 开始并以 1 结束。
如何在动画函数中初始化比例值?