Replies: 1 comment
-
|
I did some digging through the code and found the import Lenis from "lenis";
import { frame, time } from "motion";
const lenis = new Lenis();
function update() {
lenis.raf(time.now());
}
frame.update(update, true); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I trying to use motions
frameto drive lenis scroll updates. Here is what I have so far:It works, but I'm unsure if this is the best approach. Is there a better way to sync lenis with motions frame system, or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions