Last active
October 24, 2018 09:28
-
-
Save guaiamum/c83e6c012964ecaa54a26d79c7568ad7 to your computer and use it in GitHub Desktop.
makes cursor 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
let interval; | |
const blink = () => { | |
interval = setInterval(() => $('.cursor').toggle(), 600); | |
}; | |
const stopBlinking = () => { | |
clearInterval(interval); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment