Can I use endValue as percentage?
Pages.Page1.ImageButton1.animate({
...
endValue : 30,
...
});
What is type of endValue? Pixel? So, How I can use as percentage? I tried %30 or 30% but didn't work.
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%",
...
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.