Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var timeout = null;
- $(document).on('mousemove', function() {
- if (timeout !== null) {
- $(".autohide").show();
- clearTimeout(timeout);
- }
- timeout = setTimeout(function() {
- $('.autohide').hide();
- timeout = null;
- }, 5000);
- });
Add Comment
Please, Sign In to add comment