Hello everyone
This is my first post on this forum. I have been using Gsap for a few months and I have some notions in javascript (in the process of learning). I have already integrated gsap on several sites but here is my problem. I successfully add a smoothscroll on my new project by following this example :
See the Pen gOgWELo by GreenSock (@GreenSock) on CodePen
but I can't seem to get the anchor links to work properly. For the anchors in the page
Welcome to the forums @Pixizz85
It's hard to troubleshoot a live site, and there might not a way to do this use hash anchors as the browser doesn't know we are messing with the scrolling. I would probably try it using query strings in the url, kind of like this.
<a href="https://dev.station-w.fr/gsap/services.html?anchor=%23service1">Go to service 1</a>
<a href="https://dev.station-w.fr/gsap/services.html?anchor=%23service2">Go to service 2</a>
<a