Skip to content

feat: add lenis scroll#48

Open
damienmontastier wants to merge 4 commits into
mainfrom
feat/add-lenis-scroll
Open

feat: add lenis scroll#48
damienmontastier wants to merge 4 commits into
mainfrom
feat/add-lenis-scroll

Conversation

@damienmontastier
Copy link
Copy Markdown
Member

Lenis Smooth Scrolling

This feature introduces Lenis smooth scrolling to provide a more fluid and pleasant scroll experience across the website.

  • Seamless integration using the official Lenis Vue/Nuxt package.
  • Smoother, more consistent scrolling across all pages.
  • Fixes layout issues related to scroll behavior.

References

Tailwind Adjustments

Several Tailwind classes were added or removed to fix overflow and nested scroll issues introduced by Lenis, ensuring stable layout and proper scroll handling.


Local Playgroundpnpm run dev

@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 23, 2025

Deploy Preview for tresjs-web ready!

Name Link
🔨 Latest commit f9dcc16
🔍 Latest deploy log https://app.netlify.com/projects/tresjs-web/deploys/692960e3a0608200086d56ff
😎 Deploy Preview https://deploy-preview-48--tresjs-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread package-lock.json
Copy link
Copy Markdown
Member

@alvarosabu alvarosabu Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @damienmontastier, the netlify build is failing because the dependency was installed with npm instead of pnpm. Please remove the npm lock and use pnpm add lenis when you have a chance

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alvarosabu It's fixed, my bad, I'm so used to npm i 🤣

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@damienmontastier Have you tried using https://github.com/antfu-collective/ni? It autodetects the package manager of the project for you, it's pretty handy

Copy link
Copy Markdown
Member

@alvarosabu alvarosabu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@damienmontastier I tested on the laptop and it feels fantastic, we should just remove the commented code that is not used.

I just tested it on the phone, and it behaves erratically; the scroll becomes slow, and the intersectionObservers for the community part are no longer triggered. Could you please take a look atit?

Comment on lines +12 to +17
// watchEffect((onInvalidate) => {
// if (!lenisRef.value?.lenis)
// return

// const lenis = lenisRef.value.lenis
// })
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@damienmontastier, we should remove it if it's not used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants