I use parallax to scroll down my page.
But now i need create a icon/arrow allways visible when the user click scroll down to the next page, like this example.
http://cyclemon.com/index.html
Thanks
I have a menu works fine,
<ul id="nav">
<li><a href="#intro">HOME</a></li>
</ul>
I add a arrow,
<a href="#intro"><img src="imgs/icone_down.png" /></a>
The link works but dont add the scroll efect like parallax...
Allmost there
now i have,
<script>
$(document).ready(function (){
$("#click").click(function (){
//$(this).animate(function(){
$('html,body').animate({
scrollTop: window.scrollY + window.innerHeight
}, 1000);
//});
});
});
</script>
<a href="#second"><img src="imgs/icone_down.png" /></a>
Ok fine, now i detect if we reached the bottom, but how can i hidde the arrow?
$(window).scroll(function() {
if($(window).scrollTop() + $(window).height() == $(document).height()) {
alert("bottom!");
}
});