Skip to content

Instantly share code, notes, and snippets.

@stephanschuler
Last active May 24, 2017 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephanschuler/1e25c932b039f4e1249941e63c93d2ba to your computer and use it in GitHub Desktop.
Save stephanschuler/1e25c932b039f4e1249941e63c93d2ba to your computer and use it in GitHub Desktop.
$(function() {
var interval;
$('#contact').hover(start, stop);
function start() {
interval = setInterval(function() {
// whatever
}, 500);
}
function stop() {
clearInterval(interval);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment