Animating Opacity Problems
I am trying to set a Label to animate with a duration from Opacity: 1 to Opacity: .2 (Or really anything).. Below is how I defined my Label and the animate function I ran on it. What happens is that it will animate to the correct opacity and then as soon as it is done it will just "pop" back to Opacity: 1…? Do you have any ideas?
var Image = Titanium.UI.createLabel({
color:'#FFF',
backgroundImage: 'image9.png',
bottom: 76,
left: 54,
opacity: 1,
width: 67,
height: 67
});
Image.animate({opacity: .2, duration: 1000});
4 Answers
-
Accepted Answer
Android or iPhone? I have run into animation problems on Android and the support is not complete yet.
-
Is there even a way to just set the opacity of Label or View or anything and have it actually stay? What is the point of being able to animate to a different opacity and have it not stay?
-
Does that animate thing have a callback? If so, you could just set the opacity to 0.2 after completing the animation. :)
-
@Dominik I actually did try that, I even tried to do a Hide() and Show() after it.. it is still a no go, it just shows up as the full image still. Very frustrating!