I have a very long div container with all the necessary data in it. I want to show all the content to a user who opens it before I let him/her navigate through the page.
To be more precise- I want to make make my website open at the bottom and then automatically scroll to to the top so that it shows a fast overview of all the data.
Any ideas on how to do it?
If I need PHP or Jquery please explain where to put the code, I am new. Thank you!
I tried to do this with anchors, but they just jump to a certain point- that's not what I need.
Well, if you already start at the bottom of the page.
$("html, body").animate({ scrollTop: 0 }, "slow");
This does'nt really sound like a good idea, but it's up to you!
$(function() {
$(window).scrollTop(window.scrollHeight).animate({scrollTop : 0 } , 1000);
});
If you want to scroll to a particular div...Use a plugin like ScrollTo