CHAPTER 7 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 138
Figure 7-4. Hovering over the Label control makes it start to fade out.
Subsequently, when the mouse cursor is moved away from the Label (target control)
control, it starts fading right back in (see Figure 7-5).
CHAPTER 7 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 139
Figure 7-5.Moving the mouse away from the target control makes it fade back in.
In the code segment, the
event was defined along with the
tag. After that, the exact opposite was done with the event over tag.
In both cases, the Fps (frames per second used for the animation) property was set to 30
and the Duration (duration of the animation) property set to 1.5 seconds.
Using Length Animation
The length animation changes the state of a property between a start value and an end
value that you can specify. You can typically use this to animate the setting of the width or
height of a control that uses them. Before you see a short example, look at the properties
of the tag used in length animation as listed in Table 7-3.
Pages:
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216