
You are reading
- Quick Tip: Display Elements Sequentially with jQuery | Nettuts+
1. // Wrapping, self invoking function prevents globals
2. (function() {
3. // Hide the elements initially
4. var lis = $('li').hide();
5.
6. // When some anchor tag is clicked. (Being super generic here)
7. $('a').click(function() {
8. var i = 0;
9.
10. // FadeIn each list item over 200 ms, and,
11. // when finished, recursively call displayImages.
12. // When eq(i) refers to an element that does not exist,
13. // jQuery will return an empty object, and not continue
14. // to fadeIn.
15. (function displayImages() {
16. lis.eq(i++).fadeIn(200, displayImages);
17. })();
18. });
19. })();
- Crafty- JavaScript Game Engine
A lightweight, modular JavaScript game engine to easily produce high quality games.
Includes a large variety of components such as animation, event management, redraw regions, collision detection, sprites and more.
- World Leading Enterprise Mobile Web Site Builder, Mobile Advertising & Mobile Marketing Tools
Wapple Canvas™ is a mobile site design and publishing platform that allows complete creative freedom using simple point & click and drag & drop controls.
Possibly related posts (automatically generated)