I’ve already seen this sometimes, but I don’t know how to realize it or how to search for it. That’s why I would like to explain what it does:
Let’s say we got an image, an arrow and it points downwards and when you click on it, the page scrolls down. When I now scroll down and reach a specified point the arrow points upwards and brings me back to the top of the page.
EDIT: I found an example. See the small arrow at the bottom and how it changes if you reach the end of the page. rorymcilroy.com
you could use the jQuery ScrollTo Plugin
here is a demo
here is a jsfiddle demo for what you want (using the scrollTo plugin)
jsfiddle demo
the javascript:
the html:
the css:
if you want a previous / next button, you might have to create a list of items / id’s / positions (look at the documentation of the scrollTo plugin to see what parameters you can use) that should get stepped through like that:
and then create 2 buttons, one for up, one for down and then use:
here is a demo with up and down button:
jsfiddle demo with up and down
jsfiddle demo up and down fullscreen
here another demo with your “button-changes” on scroll 😉
jsfiddle button changes demo