SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 207 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"


Additionally, the animation is smart enough to know that if startValue is greater than
endValue, the animation will play backward, reducing the text from startValue to endValue,
and in a case like this, the image will shrink in size over the specified duration.
You can see the length animation in action in Figure 7-6, Figure 7-7, and Figure 7-8.
Figure 7-6 shows the application before the animation begins, Figure 7-7 shows the animation
as it is in progress and the image is growing, and Figure 7-8 shows the completed
animation.
Figure 7-6. Beginning the animation
CHAPTER 7 ?–  USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 142
Figure 7-7. The animation as it progresses
Figure 7-8. The completed animation
CHAPTER 7 ?–  USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 143
Using Discrete Animation
Discrete animations are similar to length animations in that they will cycle through a
range of values during a fixed duration. For both of these animation types, you specify
the values, and the Animation framework calculates the interim values for the animation.
The main difference is that the discrete animation tag () uses a parameter
called ValuesScript as opposed to StartValue and EndValue properties that the
tag uses for animation.


Pages:
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219