Animating a Label control to create a digital clock
This recipe uses custom animation effects to create a blinking digital clock to display the current time in the hh:mm:ss format. The constructs used in this example are summarized in the following table:
Construct |
Type |
Description |
---|---|---|
|
jQuery selector |
This selects an element using its ID. |
|
jQuery method |
This performs a custom animation on the specified CSS properties. |
|
JavaScript object |
This is an object that stores date/time information: year, month, day, hours, minutes, and seconds. |
|
JavaScript function |
This returns the number of hours from 0 to 23. |
|
JavaScript function |
This returns the number of minutes from 0 to 59. |
|
JavaScript function |
This returns the number of seconds from 0 to 59. |
|
CSS property |
This is the degree of transparency of the element. |
|
JavaScript function |
This executes... |