Hi everyone,
I made a javascript that scrolls "smoothly" to the specified anchor.
Within Modx I use the following syntax to link to a certain anchor: [~PAGEID~]#ANCHORNAME
Now, how do I put my javascript "in the middle", so one do not jump to the specified anchor but "smoothly" scroll to there?
BTW: Is there already a build in function of Modx to "smoothly" scroll to an anchor instead of jump?
Am quite new at Modx and happy for any advise. Many Thanks
Curdegn
-
☆ A M B ☆
- 24,524 Posts
This is purely a feature of the browser, so it has to be done with javascript. MODx really has nothing to do with that; it makes no barriers to putting whatever javascript bells and whistles you want in your pages.
Got it working.
Will now try to understand it better, optimize then make a small post with the solution