The problem I have right now, is that the button is not clickable when the page loads. Only when I scroll the page, the button get’s clickable and the moveDown() method fires after the button is clicked.
I’m not sure right now if this is a Turbolinks issue, or if my jQuery-code is problematic.
The code for my homepage can be accessed in my Git repository:
Hey Anthony… I know this is an opinion so take it as such, but that project hasn’t been updated in 6 months, has 137 open issues and 45 open pull requests. Not a sign I enjoy seeing in open source projects that I want to integrate into my projects. I would say contribute, but that seems to be a dead end road as well with the pull requests.
My guess is that the scrolling does not get activated until a listening event happens. You can watch the developer console to see if there are any errors happening in your js. Also disable turbolinks (or rip it out completely) and see if it fixes the problem, this will let you know if it is turbolinks related. This is probably just an issue with the plugin and not turbolinks, but trial and error.
Thanks for your reply. First I tried another jQuery plugin called fullPage.js , but I got issues with the styling (sections stacking upon each other). That’s why I decided to use the One Page Scroll plugin. Maybe I should reimplement the fullPage.js plugin again, as I found a way now to solve the styling issues.
Up till now, Turbolinks seems to cause nothing but problems when implementing jQuery plugins into my Rails projects.