locomotivemtl / locomotive-scroll

🛤 Detection of elements in viewport & smooth scrolling with parallax.
https://locomotivemtl.github.io/locomotive-scroll
MIT License
7.55k stars 1.11k forks source link

Not A Bug Report : I need help! #503

Open NyanLinSett opened 1 year ago

NyanLinSett commented 1 year ago

Hello 👋 I just started using Locomotive Scroll and I am blown away by how amazing this tool is! I am also simultaneously blown away by its complexity!

I have a button for opening the menu on smaller screens, and upon activating the menu, I would like for Locomotive Scrolls to stop. I am aware that the scroll() instance has to be used, but where and how I do not know! Please, help out this lost fellow.

Thank you (a lot) 👊

yangtangjun commented 10 months ago

You can write a layer of boxes to cover your initialization example, the box must be at the top