Is there a way to have a continuous transition.to ?
For example, I would like to have an image continuously fading in and out by using transition.to on its alpha.
Any idea ?
Patrick [import]uid: 47196 topic_id: 9284 reply_id: 309284[/import]
@tokyodan : nope. That example just does two transitions and then stops. I want the image to continuously fade in and out.
@hgvyas123 : this is exactly what I tried to do. But i doesnāt work. The image fades out, then back in and then stops changing. The functions are not recursively called.
Any other idea ?
Patrick [import]uid: 47196 topic_id: 9284 reply_id: 33911[/import]
I had almost the same code as yours and mine didnāt work!
Then I saw the difference : my functions where declared as local, not yours.
I removed ālocalā and then it works!
I canāt really understand what is going on there.
Can you explain ?
Thanks
Patrick [import]uid: 47196 topic_id: 9284 reply_id: 33915[/import]
ok local means for that particular file only and if you donāt put local then it is global
when you declare function as local it is necessary that your function should be above your line of code through which you are calling and it is not necessary for the global function