Kodi Community Forum

Full Version: Can a control fade out after say 10 secs then stay hidden for 10 seconds?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is is possible to have a control fade out after say 10 secs then stay hidden for 10 seconds and loop those two animations. So it shows for 10 seconds, hides for 10 seconds, shows for 10 seconds...etc.

Mainly what I'm after is in the top right of the skin I'm working on I want to show the Time and Date then have that fade out and then show the weather, one fades out while the other fades into view and so on...

Sorry for no code, I wasn't getting close to what I was after and deleted it. I wanted to ask here if it's possible before I try again, thx.
It sounds like you want something along the lines of this:

*Note this is hastily written pseudo code so don't just drop it in. Rolleyes
Code:
<animation type="Conditional" condition="Control.IsVisible(id)" pulse="TRUE">
  <effect type="fade" start="100" end="0" time="200" delay="10 seconds"/>
  <effect type="fade" start="0" end="100" time="200" delay="20 seconds"/>
</animation>
If you wanted to only use text, you could use a fadelabel control. This will handle the fading for you automatically.