when using an inline link in the menu ala /#contact all works fine except that all html code above the id contact is gone (yep , wiped out from the code)
Hi! That’s a known GSAP ScrollSmoother limitation. For such anchor scrolling stuff, you need to use the GSAP “scrollTo” method: Docs - GreenSock
You have 3 options:
-
Use the scrollTo method as described above when clicking on anchor links. You can create such a functionality with the Bricksforge Panel
-
Just use the Smooth Scrolling Provider “Lenis”. Lenis, in general, will work with internal anchor scrolling. (But also here: if we want the smooth scrolling also for our anchor link scrolling, we need to use an internal “scrollTo” method.
-
Wait for the next Bricksforge Update. I gonna add a setting to optional navigate all anchor links with the related scrollTo methods.
Regards
Daniele
Hey, was there ever an update?
Having this issue too, but can’t get it to work.
Hey @Daniele,
- Use the scrollTo method as described above when clicking on anchor links. You can create such a functionality with the Bricksforge Panel
Can you short explain how to create a scrollTo method with the Bricksforge Panel, please?
Is it possible to scroll to a specific window position when a timeline is ending?
Kind regards
Ole