[英]endValue as Percentage Usage
Can I use endValue as percentage? 我可以使用endValue作为百分比吗?
Pages.Page1.ImageButton1.animate({
...
endValue : 30,
...
});
What is type of endValue? endValue是什么类型? Pixel?
像素? So, How I can use as percentage?
那么,如何使用百分比? I tried %30 or 30% but didn't work.
我尝试了%30或30%,但是没有用。
Take this full code of example; 以这个完整的代码为例;
Pages.Page1.ImageButton1.animate({
property : 'Y',
endValue : '30%',
motionEase : SMF.UI.MotionEase.plain,
duration : 3000,
onFinish : function () {
//do your action after finishing the animation
}
});
You can use it as String: 您可以将其用作字符串:
Pages.Page1.ImageButton1.animate({
...
endValue : "100%",
...
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.