Blink and marquee!

Recently I’ve blogged about creating the a blink tag with jQuery, I’ve also blogged about making a marquee tag.
Well can we combine them? Sure we can! But with $.Deferred() there’s some more cool things we can do, like this:
$.when($(…

Recently I’ve blogged about creating the a blink tag with jQuery, I’ve also blogged about making a marquee tag. Well can we combine them? Sure we can! But with $.Deferred() there’s some more cool things we can do, like this: $.when($('h1').blink({ count: 5 }), $('h1').marquee({ count: 1 })) .done(function() { $('h1').css('color', '#f00'); }); Once both the plugins have completed the text will turn red. Without wanting to get too deep into how Deferred works (read the doco for that) the high-level view is that when all the methods that are passed into $.
Print Share Comment Cite Upload Translate
CITATION GOES HERE CITATION GOES HERE
Select a language: