To better understand the
Animation control, let??™s now explore three of the many supported animation types: fade
animation, length animation, and discrete animation.
CHAPTER 7 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 137
Using Fade Animation
The first animation that we??™ll look at is the fade animation, which as the name implies,
allows you to add fading effects to a control on your page. Two types of fading animation
are supported: FadeIn and FadeOut. To illustrate fade animation, let??™s look at a small example
that shows a control fading in and out. The target control is a Label control with blue
text and yellow background.
ForeColor="Blue" Height="68px" Text="Fading In & Out" Width="165px">
runat="server">
After running this page, you will see that when you hover the mouse over the Label
control, it begins to fade as shown in Figure 7-4.
Pages:
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215