UseLenis() hook withour callback #316
Closed
robinNavas
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, great work on Lenis-scroll !
I think it would make sense to allow the use of useLenis hook without callback function in order to get only the lenis instance. For example I store it as a variable and call lenis.scrollTo() when some condition are fulfilled.
To be clearer:
const lenis = useLenis()
instead ofconst lenis = useLenis(() => {})
Maybe I don't use correctly the feature btw.
Beta Was this translation helpful? Give feedback.
All reactions