An alternate way to achieve the above example using an element rather than a jQuery object. Checks against an existing collection of alternating list elements. Blue, alternating list elements slide up while others turn red.
Edit code and click me
Your Result
(Some examples do not work in Google Chrome):
Chrome
Safari
Firefox
Opera
Edit the code above and click to see the result
www.xhtml.co.il
- Try it yourself