This is a migrated thread and some comments may be shown as answers.

Animation or Transition?

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dele
Top achievements
Rank 2
Dele asked on 23 Nov 2010, 10:24 PM
Hi,

I have a quick question on a simple scenario I would like to accomplish.

I would like to show/hide a certain section of my panorama item when i click on a button.  And I would also like to add some sort of animation/transition.

What would be the right control to use?  The Animation or Transition?  My first guess was the Animation.  if so, is there a simple way to do this?  The code examples you have aren't quite clear.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 24 Nov 2010, 02:25 PM
Hello Dele,

A general rule of thumb is to use transition when swapping one content with another. You can use the RadTransitionControl for this purpose - it will animate the transition between the old and the new content.

In order to change a specific property of an element with animation, you should use the RadAnimation framework. In this case - you can use the RadFadeAnimation to animate the Opacity property of the element and when the animation is done to set the Visibility of your element to Collapsed.

The other option will be if you use the RadResizeAnimation to animate the Width/Height properties of your element.

Hope this makes it more clear. Please let us know if you need more help.

All the best,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Dele
Top achievements
Rank 2
Answers by
Valentin.Stoychev
Telerik team
Share this question
or