Skip to content

Instantly share code, notes, and snippets.

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