-
I'm trying to achieve an interaction similar to what they are doing here: https://www.surfacemag.com/ In short, scroll an internal list of content first, then when it gets to the bottom, scroll the full body content. I assuming this is what the I figured when the page loads and we want any scroll to target the internal list, set the If not, can you point me in the right direction? Thanks for your great lib! Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
It can be easily achieved by setting |
Beta Was this translation helpful? Give feedback.
-
That gets me part of the way there, but on page load, I want scrolling on the outer scrollbar's events to scroll the interior scrollbar until the bottom is reached. Then, continue scroll the page per normal. |
Beta Was this translation helpful? Give feedback.
-
I want to install this on an HTML5 and JQuery website, how can I do that, I already have smooth-scrollbar.js, whats next? Please guide me anyone? |
Beta Was this translation helpful? Give feedback.
-
@idiotWu maybe the problem is I'm not understanding the I thought But it seems like instead of delegating events on scroll bar A to scroll bar B, it instead tells scrollbar A to listen to scroll events on a different element and then scroll itself. Is that correct? In my case I have a two scrollbars setup. The first is a parent scrollbar that wraps all the content on the page. The second is child section, which lives inside the parent. Ideally, when the child finishes scroll the parent scrollbar would then start scrolling. I've tried various When I don't init the parent scroll bar, and just use native scrolling, it works as intended. But when I init both the parent scrollbar and the child, and set |
Beta Was this translation helpful? Give feedback.
It can be easily achieved by setting
continuousScrolling
totrue
on the inner scrollbar :).