lukehaas / Scrollify

A jQuery plugin that assists scrolling and snaps to sections.
MIT License
1.8k stars 580 forks source link

different scroll container (target) than html, body #410

Closed marcoherzog closed 3 years ago

marcoherzog commented 3 years ago

Fixed this for my mdc theme which uses a div (#main-content) as scroll container while activated navigation drawer. https://material.io/components/navigation-drawer

Usage example:

  $.scrollify({
    section : "article.post, .site-footer", // add .site-footer to reach bottom
    scrollSpeed: 200,
    setHeights: false,
    target:"#main-content" 
  });
lukehaas commented 3 years ago

Thanks

marcoherzog commented 3 years ago

Thank you! And thank you very much for this amazing piece of code.

Luneos commented 2 years ago

Hi guys,

I'm a simple webflow user who did discover the scrollify script. Thx a lot for the work !

I've just one issue with the integration. In my page I have 3 sections in the beginning that used scrollify, then several sections above block by the script. https://luneos-v3.webflow.io/

I do not understand wich options or methods I need to use to alow the scroll on the rest off the page. Thank's for your light G