TAILIEUCHUNG - ASP.NET 4 Unleased - p 180

. Chơi rời rạc Animation-một hình động bằng cách thiết lập một tài sản của các phần tử mục tiêu cho một chuỗi các giá trị. . Suy Animation-Chơi một hình động bằng cách thay đổi một tài sản dần dần giữa một loạt các giá trị được đại diện bởi startValue và endValue. . | 1764 CHAPTER 39 Using the AJAX Control Toolkit Discrete Animation Plays an animation by setting a property of the target element to a sequence of values. Interpolated Animation Plays an animation by changing a property gradually between a range of values represented by startvalue and endValue. Color Animation Plays an animation by changing a property gradually between a range of values represented by a start color and an end color. Length Animation Plays an animation by changing a property gradually between a range of values representing a start and end unit of length. Move Animation Plays an animation by moving an element either relatively or absolutely across the page. Resize Animation Plays an animation by resizing an element by changing the element s width and height. Scale Animation Plays an animation by resizing an element by using a scale factor. Enable Action An action that disables or enables an element on the page such as a Button control . Hide Action An action that hides an element by setting display none. Style Action An action that applies a style attribute to an element. Opacity Action An action that modified the transparency of an element. Script Action An action that executes a JavaScript script. To learn more about the properties that you can use with each of these different types of animations refer to the Animation Reference included with the AJAX Control Toolkit SampleWebSite website. Using the UpdatePanelAnimation Control The final Toolkit control that we need to discuss in this chapter is the UpdatePanelAnimation extender control. This control can play an animation both when an UpdatePanel is initiating an asynchronous postback and when postback results are returned from the web server. Performing some type of animation while an UpdatePanel is performing an asynchronous postback provides the user with a way to know that your web application hasn t frozen. The animation indicates that some work is being done in the background.