I am animating an image rotation using a doubleanimation linked to a click event of a button. the animation has an ease in and ease out + a duration of 10 seconds.
what i want to do is at the same time animate another image so that in the last 3 seconds of the first animation the second image is faded in and out using an opacity animation.
I have no experience of storyboards and am not sure how to accomplish this effect.
regards,
Dan
If you’re controlling the durations explicitly, then probably the easiest way to do it is to set the
BeginTimeof the opacity animation to start at 7 seconds and set theDurationto last 3 seconds. If they’re both in the same storyboard and you start the storyboard, the timing will be handled for you by setting those properties.Here’s a very rough example.
You’ll need to set the To/From/Storyboard.TargetName/Storyboard.TargetProperty properties on those animations as well, obviously. But this gives you the idea of the concept.
Look at the MSDN article for more information on Storyboards in general.