Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#notification').fadeIn(500) ;
- var element = $('#notification');
- var timer = window.setTimeout(function() {
- element.fadeOut(420);
- $('button').fadeIn(420) ;
- }, 2000);
- element.mouseenter(function() {
- window.clearTimeout(timer);
- });
- element.mouseleave(function() {
- element.delay(420).fadeOut(420);
- $('button').fadeIn(420) ;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement