Can a control fade out after say 10 secs then stay hidden for 10 seconds?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mcborzu Offline
Skilled Skinner
Posts: 3,381
Joined: Feb 2009
Reputation: 15
Location: dsf
Post: #1
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.
find quote
reddragon220 Offline
Member
Posts: 86
Joined: Jun 2009
Reputation: 0
Post: #2
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>
find quote
Sranshaft Online
Posting Freak
Posts: 1,335
Joined: Dec 2008
Reputation: 19
Location: Melbourne, Australia
Post: #3
If you wanted to only use text, you could use a fadelabel control. This will handle the fading for you automatically.
find quote