baptistebriel / smooth-scrolling

smooth scrolling and parallax effects on scroll
MIT License
612 stars 75 forks source link

Possible to have another smooth applied to a div? #90

Closed 23d1 closed 5 years ago

23d1 commented 6 years ago

Is it possible to have another smooth applied to a div? One pretty big use-case is a cart modal or menu and so forth. When I initialize two different smooth objects it just adds another .vs-scroll-view to the body...

baptistebriel commented 6 years ago

Sure! You can pass in an option listener, which defaults is document.body. Let me know if that works!