transitioning tranparency

So I finally managed to get my animated graphic to appear!

Now I want it to fade in from absolutely transparent to full colour, I can fade it out with this code:

local transition_id = transition.to( hero, { time=3000, alpha=0 } )

And I know that this is saying “fade from 100% to 0%” so I just need to know how to make it say “fade from 0% to 100%”

Also, while I’m here, after my graphic has loaded it then appears on all pages if I hit the back button and move through my app??

hero.alpha =  0

local transition_id = transition.to( hero, { time = 3000, alpha = 1 } )

if you’re using storyboard, you haven’t added your graphic to the screenGroup, so it won’t be destroyed on screen exit.

Fantastic, that works perfectly!! thanks Andy

and that makes complete sense, just need to add it to the group, thanks very much…

hero.alpha =  0

local transition_id = transition.to( hero, { time = 3000, alpha = 1 } )

if you’re using storyboard, you haven’t added your graphic to the screenGroup, so it won’t be destroyed on screen exit.

Fantastic, that works perfectly!! thanks Andy

and that makes complete sense, just need to add it to the group, thanks very much…