fade-in and fade-out on iPHONE and ANDROID...
is there an image fade in/fade out that works on iPHONE and ANDROID?
if not, I suppose I can use a timer and the opacity?
I don't want to tackle this problem unless you have a solution that works on both platforms.
2 Answers
-
Titanium makes it easy using the animate property along with the suggested opacity property.
var img = Titanium.UI.createImageView({image:'yourimage.png'}); img.animate({opacity:0.0,duration:500},function(){ alert('fade out finished'); });
As you may notice from the example above you can very easily use these properties to create a slide show.
Don't believe me? See for your self here
-
can you add a code for slideshow animation? thanks