Animation while incrementing height of Textarea
Hi ,
Iam trying to increment height of textarea using animation- so that the textarea's height increases smoothly (like drawer sliding effect). Iam not able to achieve this on Android.
var box = Ti.UI.createTextArea({
top:200,
left:380,
height:80,
width:300,
text:'' });
box.addEventListener('click', function() {
var animHeight = Ti.UI.createAnimation();
animHeight.duration=5000;
animHeight.height=300;
box.animate(animHeight);
});
================
This doesn't work, I tried using scaling, this kind of increases both height and width but I want only the height to increase.
Please can someone provide sample code / hints to go about this
-thanks
1 Answer
-
try this
box.animate({height:300, duration:5000});