Not sure if you can give some pointers, but I have this scroll up and down button that'll only appear when there's "space" to scroll, if it's at the end of the scroll position, it'll hide the respective button (e.g: at the top; hides up button and shows down button, at the bottom; hides down button and shows up button, in the middle; shows both buttons)
I managed to make it work, but I hit a snag. Can't seem to figure out how to make it on first load/page visit, to hide the up button. It works as expected once you scroll down the page and up, it's only the first time it loads, the up button needs to be hidden. Thoughts/suggestions?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for this guide! It was helpful!
Not sure if you can give some pointers, but I have this scroll up and down button that'll only appear when there's "space" to scroll, if it's at the end of the scroll position, it'll hide the respective button (e.g: at the top; hides up button and shows down button, at the bottom; hides down button and shows up button, in the middle; shows both buttons)
I managed to make it work, but I hit a snag. Can't seem to figure out how to make it on first load/page visit, to hide the up button. It works as expected once you scroll down the page and up, it's only the first time it loads, the up button needs to be hidden. Thoughts/suggestions?