Skip to content

Instantly share code, notes, and snippets.

@samanpwbb
Created October 10, 2012 17:43
Show Gist options
  • Save samanpwbb/3867164 to your computer and use it in GitHub Desktop.
Save samanpwbb/3867164 to your computer and use it in GitHub Desktop.
var locked = true,
b = $('.branding');
$('body').mousemove(function() {
locked = false;
setInterval(function() {
if (!locked) b.removeClass('visible');
locked = true;
}, 5000 );
b.addClass('visible');
clearInterval();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment