3
My question is this: I want/need a code for my site, which works the way of this website. In it, when the user uses the scroll mouse to scroll down a bit on the page, a little arrow (which when it is clicked, goes back to the top - the top part of the site) appears in the right corner.
I’ve already searched the Google, and I guess I didn’t know how to use the right words, because I couldn’t find any results that would suit me.
Note: The code to return upward I already have.
+1. Adding: to get the same effect of the example page, just animate the display/hiding of the arrow (using for example
fadeIn
/fadeOut
) instead of just assigning the CSS property.– mgibsonbr
@mgibsonbr is true, I forgot the effect.
– Filipe Moraes
Anyway, the main question was answered.
– mgibsonbr
Dear Mutio Thank you, Thank you very much!! + 1 , and if I could +1000
– Samir Braga
I almost totally agree with you. The point is that for this is used
position: fixed
and notabsolute
– Andre Figueiredo
@Andréfigueiredo you’re absolutely right, but I think he already had the css done, only needed javascript.
– Filipe Moraes
ok! + 1 anyway! :)
– Andre Figueiredo