lenis icon indicating copy to clipboard operation
lenis copied to clipboard

Update README.md

Open meesrutten opened this issue 1 year ago • 4 comments

Add Framer Motion implementation.

Let me know if anything needs to change!

meesrutten avatar Aug 08 '24 12:08 meesrutten

@meesrutten is attempting to deploy a commit to the darkroom Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 08 '24 12:08 vercel[bot]

Thank you for this PR. However i think that this example should use lenis/react.

clementroche avatar Aug 08 '24 12:08 clementroche

Agree with @clementroche, as most people using lenis with react will use lenis/react. React lenis will setup a rAF for itself so it has to be explicitly disabled with the autoRaf prop on the Provider. This is currently a discrepancy between lenis core and lenis react.

feledori avatar Aug 08 '24 14:08 feledori

I'll probably wait until we find a proper solution about rAFs

clementroche avatar Aug 08 '24 16:08 clementroche

Thank you @meesrutten I added this example to lenis/react documentation:

https://github.com/darkroomengineering/lenis/blob/main/packages/react/README.md#framer-motion-integration

clementroche avatar Nov 05 '24 14:11 clementroche