Animation is just the extender control which will add animation to the page. Animation can be played through a number of events attached to it like OnMouseOver, OnMouseOut, OnClick and OnLoad raised by the target control.
You can learn more in my previous parts here:
- AJAX Control Toolkit Tutorial: Introduction - Part One
- AJAX Control Toolkit Tutorial: Accordion - Part Two
- AJAX Control Toolkit Tutorial: AjaxFileUpload - Part Three
- AJAX Control Toolkit Tutorial: AlwaysVisibleControl- Part Four
There are a number of useful animation effects like fading, resizing, movement and much more.
Initial Code for implementation of animation.
- <asp:Panel Direction="NotSet" ID="socialmediaicons" runat="server">
- <asp:Image ID="imgflagpak" runat="server" ImageUrl="~/Images/Flag_Of_Pakistan-1969px.jpg" Width="500px" BorderColor="Black" BorderStyle="Dotted" BorderWidth="3px" />
- </asp:Panel>
- <div class="row">
- <div id="ajaxcontroltoolkitplaceholder">
- <ajaxToolkit:AnimationExtender ID="ae" runat="server" TargetControlID="socialmediaicons">
- <Animations>
- <OnLoad>
- <Sequence>
- <Color Duration="3" StartValue="#FF3300" EndValue="#0033FF" Property="style" PropertyKey="color" />
- <OpacityAction AnimationTarget="imgAjax" Opacity="0.5" />
- </Sequence>
- </OnLoad>
- </Animations>
- </ajaxToolkit:AnimationExtender>
- </div>
Output

Now let’s discuss its properties
Properties
OnLoad
It can call animation as soon as the page load event fires.
- <asp:Panel Direction="NotSet" ID="socialmediaicons" runat="server">
- <asp:Image ID="imgflagpak" runat="server" ImageUrl="~/Images/Flag_Of_Pakistan-1969px.jpg" Width="500px" BorderColor="Black" BorderStyle="Dotted" BorderWidth="3px" />
- </asp:Panel>
- <div class="row">
- <div id="ajaxcontroltoolkitplaceholder">
- <ajaxToolkit:AnimationExtender ID="ae" runat="server" TargetControlID="socialmediaicons">
- <Animations>
- <OnLoad>
- <Sequence>
- <Color Duration="3" StartValue="#FF3300" EndValue="#0033FF" Property="style" PropertyKey="color" />
- <OpacityAction AnimationTarget="imgAjax" Opacity="0.5" />
- </Sequence>
- </OnLoad>
- </Animations>
- </ajaxToolkit:AnimationExtender>
- </div>






Sonu ChaudharyPosted Jun 9, 2016, 4:47 PM
nice share
Ketak BhalsingPosted Jun 2, 2016, 1:32 AM
Helpful information....
Munesh SharmaPosted Jun 1, 2016, 11:26 AM
nice
Debasis SahaPosted Jun 1, 2016, 1:37 AM
Nice share..
Vignesh ManiPosted May 31, 2016, 4:19 PM
Good one