Archive for February 14th, 2011

Ever have the problem where you want to fade out a whole collection of stuff, and then show only one? A naive implementation looks like this: $(‘.options .option’).fadeOut(‘fast’, function() { $(‘.options .option:eq(4)’).fadeIn(‘fast’)}); If you have five options, however, the callback gets called five times. Now, this is okay in the current example: fadeIn is idempotent, […]


Subscribe to Feed

Categories

Calendar

February 2011
M T W T F S S
« Jan   Mar »
 123456
78910111213
14151617181920
21222324252627
28