Created
October 19, 2015 14:53
-
-
Save imwithsam/72012edb49c8d5650ccd to your computer and use it in GitHub Desktop.
Blink
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// YOUR CODE GOES HERE | |
(function($) { | |
$.fn.blink = function(speed) { | |
window.setInterval(function() { | |
this.css('visibility', 'hidden'); | |
}.bind(this), speed); | |
window.setInterval(function() { | |
this.css('visibility', 'visible'); | |
}.bind(this), speed*2); | |
return this; | |
}; | |
}(jQuery)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment