This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

whoever303
whoever303

I'm using octoberCMS with Single Page Application Plugin (https://octobercms.com/plugin/imbasynergy-octoberspa). I've added smooth-scrollbar.js.

Everything works perfectly, except that I can't get smooth-scrollbar to scroll back to the top when a new page is loaded.

Here's the API documentation at Github - https://github.com/idiotWu/smooth-scrollbar/blob/17ce0196c0fdce5bdceda8ef5316e705e0f62d30/docs/api.md

Please bear with me, as I'm new to this and learning :)

Thanks a lot, You'll make my day!

mjauvin
mjauvin

How did you implement the trigger to scroll to top after a page load?

Last updated

whoever303
whoever303

I did not, but I'd like to know what would be the way of doing so.

mjauvin said:

How dud you implement the trigger to scroll to top after a page load?

whoever303
whoever303

Guys, please! Can anyone help?

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.