Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#brand_logo').on('inview mouseenter', function(event, visible) {
- if (visible === true) {
- // console.log("I got my eye on it Charlie");
- $("#topnav").animate({
- opacity: 1.0,
- width: '98%',
- height: '38px'
- });
- // $(".head-wrap-left").hide();
- } else {
- // console.log("Let's set the mood.");
- $("#topnav").animate({
- opacity: 0.9, //0.6 original
- width: '310px',
- height: '33px'
- });
- $("#topnav_behind").slideUp();
- $('#topnav').bind({
- mouseenter: function() {
- $("#topnav").animate({opacity: 1.0, width: '98%', height: '38px'});
- },
- mouseleave: function() {
- $("#topnav").animate({opacity: 0.9, width: '310px', height: '33px'});
- }
- });
- }});
- // $(".head-wrap-left").show();
- mouseleave: function() {
- if($(window).scrollTop() > 500 {
- $("#topnav").animate({opacity: 0.9, width: '310px', height: '33px'})
- }
- }
Add Comment
Please, Sign In to add comment