mayerz
(Thibaut Gonzalez)
April 26, 2024, 8:39am
1
Hello everyone,
I watched several topics about this issue, but i can’t figure out where the problem come from
I have an FAQ down on my page, and when i open questions, it seems like i can’t scroll down on my page - idk why, i’m trying to figure out since a day now and i’m asking for your help ahaha
You can find the page right there
https://portfolio-thibautg.webflow.io/accueil-new
https://preview.webflow.com/preview/portfolio-thibautg?utm_medium=preview_link&utm_source=designer&utm_content=portfolio-thibautg&preview=7c4afe0645bd6bd518f72ee3af2cd6b8&workflow=preview
Thanks a lot
toqeer.94
(Muhammad Toqeer Iqbal)
April 26, 2024, 11:14am
2
@mayerz Can you please confirm if you are using any custom code in header or body for smooth scrolling? if YES try to remove this code and test again.
mayerz
(Thibaut Gonzalez)
April 26, 2024, 11:18am
3
Yes, i tried it and it removes the problem, meh, i like this smooth scrolling effect
But thanks a lot
1 Like
toqeer.94
(Muhammad Toqeer Iqbal)
April 26, 2024, 11:22am
4
@mayerz
If you like the smooth scrolling effect, here is good news for you
Use this code and let me know if everything is working fine for you or not
Add this script in footer
// Smooth Scroll - Add this script in footer
<script src="https://cdn.jsdelivr.net/gh/studio-freight/lenis@0.2.28/bundled/lenis.js"></script>
const lenis = new Lenis({
duration: 1.2,
easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)), // https://www.desmos.com/calculator/brs54l4xou
direction: 'vertical', // vertical, horizontal
gestureDirection: 'vertical', // vertical, horizontal, both
smooth: true,
mouseMultiplier: 1,
smoothTouch: false,
touchMultiplier: 2,
infinite: false,
})
function raf(time) {
lenis.raf(time)
requestAnimationFrame(raf)
}
requestAnimationFrame(raf)
mayerz
(Thibaut Gonzalez)
April 26, 2024, 11:26am
5
Man, it works, ahaha you saved my smooth scroll i’m so glad
1 Like
toqeer.94
(Muhammad Toqeer Iqbal)
April 26, 2024, 11:28am
6
Great to hear that the solution worked for you!
mayerz
(Thibaut Gonzalez)
April 26, 2024, 11:29am
7
Thanks a lot @toqeer.94 , glad you’ve seen my post, have a nice day
1 Like
toqeer.94
(Muhammad Toqeer Iqbal)
April 26, 2024, 11:31am
8
Always welcome. Happy to serve the Webflow community.
@mayerz don’t forget to mark this as solved.