Using the AnimationExtender Component in Ajax Control Toolkit (ACT)
(Page 1 of 5 )
If you want to add animation to the web pages, the
AnimationExtender component is the one you should use. It is possible to provide a simple animation effect such as moving an ASP Control to a new place, resizing it, modifying its color, or making it fade in or fade out.
Introduction
The AnimationExtender component also allows you to apply the effects one after the other in a sequence, or all of them at once, or even just the selected effect. These effects may be provoked by using the common events like OnLoad, OnClick, OnMouseOver, OnMouseOut, and so forth. The XML declarative syntax used makes it easy for non-programmers to add animation effects. The AnimationExtender orchestrates the animation of these effects by events raised by controls in the scope of the animation.
Flash back to animation in DHTML
In the days when Visual Interdev was the main IDE, the various animation effects were produced by filters for images and scripted transitions and CSS. A variety of effects to dynamically alter the style and content of web pages were possible. This allowed the much-desired user interaction to alter or modify the display. There were some 14 filters and a large number of transitions in addition to the scripting support. They were browser specific.
About this tutorial
The tutorial uses Visual Studio Professional Edition installed on a machine running Windows XP Professional Media Center Edition. The tutorial is developed side-by-side with the sample example site of the ACT.
This tutorial shows the following animation effects after briefly describing the essential items required in duplicating the animation functionality. Since the tutorial is a static page, it will not be possible to demonstrate the animations, but if the reader can download the ACT, or at least have the AjaxControlToolkit.dll installed in the bin directory of a project in VS 2005 IDE, he or she will be able to test them.
- OnMouseOver and OnMouseOut
- OnClick
- OnLoad
- Sequenced Events
Next: The AJAX Extensions and the ACT Components >>
More JavaScript Articles
More By Jayaram Krishnaswamy