Jump to content

Recommended Posts

Posted

I used to work there for several years- my first job out of college. I actually designed the website about 2-3 versions before the current one. Though couldn't tell you anything about the current site. I've always missed working there, one of the best places I've worked. Always great to hear about Grafik.

  • Like 2
Posted

And too bad about WordPress if that's what they are using. I don't think they even know about PW. I will have to have a talk with them sometime. :)

  • Like 7
Posted

And too bad about WordPress if that's what they are using. I don't think they even know about PW. I will have to have a talk with them sometime. :)

A cute devil in pub turns out to drop a clanger. Never get involved with the devil. I need more Smileys here - in the pub, like glass of beer or so. Back to serious discussion ...

Posted

Pretty easy in jquery and I've done it on this site: http://ciaraphelan.com/

Pretty much just add an event listener to scroll and when the scrollY is over a certain amount you trigger something (and trigger it back for less than that number).

I wrote this a while ago so you might be able to do something more succinct:

$scroll = 0;

$(window).on('scroll', function(e) {
  
  if(window.innerWidth >= 768){
  
    if(window.pageYOffset >= 300){ // desktop menu collapse
      
      // do something
      
    }else if(window.pageYOffset <= 299){
    
      // do something back
      
    }
  }
}); 
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...