我可以使用 endValue 作为百分比吗?
Pages.Page1.ImageButton1.animate({
...
endValue : 30,
...
});
endValue 的类型是什么?像素?那么,我如何使用百分比?我尝试了 %30 或 30% 但没有用。
我可以使用 endValue 作为百分比吗?
Pages.Page1.ImageButton1.animate({
...
endValue : 30,
...
});
endValue 的类型是什么?像素?那么,我如何使用百分比?我尝试了 %30 或 30% 但没有用。
以这个完整的代码为例;
Pages.Page1.ImageButton1.animate({
property : 'Y',
endValue : '30%',
motionEase : SMF.UI.MotionEase.plain,
duration : 3000,
onFinish : function () {
//do your action after finishing the animation
}
});
您可以将其用作字符串:
Pages.Page1.ImageButton1.animate({
...
endValue : "100%",
...
});