Skip to content

Conversation

@AtharvaShirke95032
Copy link

📝 Description

This PR adds a smooth scrolling effect to the PrivacyHub website using the Lenis library.
The scrolling now feels slightly smoother than native scrolling but responds immediately to user input, with no lingering momentum when reversing direction.
Anchor links also smoothly scroll to their targets.

🔗 Related Issue

Fixes #62

🎯 Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update
  • 🎨 Style update (formatting, renaming)
  • ♻️ Code refactoring (no functional changes)
  • ⚡ Performance improvement
  • ✅ Test update
  • 🔧 Build/configuration change

🧪 How Has This Been Tested?

  • Scrolling with mouse wheel and trackpad
  • Anchor links smooth scroll tested
  • Verified no console errors and no breaking changes

Test Configuration:

  • OS: macOS / Windows
  • Browser: Chrome / Safari / Firefox
  • Node version: 18+

📸 Screenshots (if applicable)

Not applicable – affects scroll behavior only

✅ Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

📚 Additional Notes

  • Uses Lenis v1.0+ for smooth scrolling
  • No additional environment variables are required

🔄 Dependencies

  • Added lenis dependency in package.json

By submitting this pull request, I confirm that my contribution is made under the terms of the project's license.

@vercel
Copy link

vercel bot commented Oct 19, 2025

@AtharvaShirke95032 is attempting to deploy a commit to the alokemajumder's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

[FEATURE] 🚀 Add Smooth Scrolling Effect

1 participant