Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked July 10th 2010 by vincent youmans
  • android
  • fade
  • imageview
  • in
  • iphone

2 Answers

  • Titanium makes it easy using the animate property along with the suggested opacity property.

    var img = Titanium.UI.createImageView({image:'yourimage.png'});
         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

    — answered May 22nd 2012 by Dan Boorn
    • and how to fade-in?

      — commented January 10th 2013 by Ario Barzan
    • It doesn't work in my project

      — commented June 28th 2013 by Luca Marzi
    • See Docs - Titanium.UI.View - Animate

      — commented June 28th 2013 by Daniel Boorn
  • can you add a code for slideshow animation? thanks

    — answered June 4th 2012 by Graham Jeffrey
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.