darkroomengineering / lenis

How smooth scroll should be
https://lenis.darkroom.engineering
MIT License
8.58k stars 371 forks source link

Is it possible to use two instances of Lenis? One in the body and another inside a modal? #273

Closed Javier2x closed 9 months ago

Javier2x commented 9 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Try to reproduce your issue by forking this codepen. If you can't reproduce it, it means there is something wrong on your initial environment.

clementroche commented 9 months ago

Of course, just call new Lenis( { wrapper, content } ) using modals elements.