Skip to content

Instantly share code, notes, and snippets.

@deleteman
Created April 13, 2012 21:50
Show Gist options
  • Save deleteman/2380374 to your computer and use it in GitHub Desktop.
Save deleteman/2380374 to your computer and use it in GitHub Desktop.
Infinite recursive blinking effect donde in JQuery
// I was in a hurry, so I didn't look for it on internet... thought I would share it :P
function toggleMsg(callback) {
$("#my_block").fadeToggle(
'slow', function() {
toggleMsg(callback)
});
}
toggleMsg(toggleMsg); //It's infinite!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment