Animating the Menu control
The ASP.NET Menu
control enables quick building of menus on websites. This recipe demonstrates how to add text animations, such as a blink effect and change of font color of a menu item on mouseover
. The constructs used in this example are summarized in the following table:
Construct |
Type |
Description |
---|---|---|
|
jQuery selector |
This matches all elements with the specified CSS class. |
|
jQuery selector |
This selects all elements with the specified HTML tag. |
|
jQuery object |
This refers to the current jQuery object. |
|
jQuery method |
This gets the style property for the first matched element or sets the style property for every matched element. |
|
jQuery method |
This animates the opacity of the matched element by increasing it gradually until it reaches a value of 1, that is, it becomes opaque. |
|
jQuery method |
This animates the opacity of the matched element by decreasing it gradually until it reaches... |