SHARE
TWEET

Untitled

a guest Feb 11th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('#brand_logo').on('inview mouseenter', function(event, visible) {
  2.     if (visible === true) {
  3.         // console.log("I got my eye on it Charlie");
  4.         $("#topnav").animate({
  5.             opacity: 1.0,
  6.             width: '98%',
  7.             height: '38px'
  8.         });
  9.         // $(".head-wrap-left").hide();
  10.     } else {
  11.         // console.log("Let's set the mood.");
  12.  
  13.         $("#topnav").animate({
  14.             opacity: 0.9, //0.6 original
  15.               width: '310px',
  16.               height: '33px'
  17.  
  18.         });
  19.         $("#topnav_behind").slideUp();
  20.  
  21.         $('#topnav').bind({
  22.                     mouseenter: function() {
  23.                         $("#topnav").animate({opacity: 1.0, width: '98%', height: '38px'});
  24.                     },
  25.                     mouseleave: function() {
  26.                            $("#topnav").animate({opacity: 0.9, width: '310px', height: '33px'});
  27.                     }
  28.                     });
  29.         }});
  30.  
  31.         // $(".head-wrap-left").show();
  32.    
  33. mouseleave: function() {
  34.             if($(window).scrollTop() > 500 {
  35.                    $("#topnav").animate({opacity: 0.9, width: '310px', height: '33px'})
  36.              }
  37.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top