karldesign Posted October 3, 2007 Share Posted October 3, 2007 Hi, I would really like to implement smooth scrolling for anchor links, and the script I have works great: scrolls up and down and where I want it... however, I have some anchor links that link to a new page and wandered if anyone knew a way of scrolling on the page load, rather than just jumping down. Cheers in advance. Link to comment https://forums.phpfreaks.com/topic/71646-smooth-scrolling/ Share on other sites More sharing options...
fenway Posted October 3, 2007 Share Posted October 3, 2007 setTimeout and scrollIntoView. Link to comment https://forums.phpfreaks.com/topic/71646-smooth-scrolling/#findComment-360785 Share on other sites More sharing options...
karldesign Posted October 9, 2007 Author Share Posted October 9, 2007 I'm not familiar with javascript at all, ideally i wouldn't use it, so could you explain more? Link to comment https://forums.phpfreaks.com/topic/71646-smooth-scrolling/#findComment-365418 Share on other sites More sharing options...
fenway Posted October 9, 2007 Share Posted October 9, 2007 I'm not familiar with javascript at all, ideally i wouldn't use it, so could you explain more? If you're unfamiliar, I suggest you find some examples to copy... Link to comment https://forums.phpfreaks.com/topic/71646-smooth-scrolling/#findComment-365458 Share on other sites More sharing options...
RichardRotterdam Posted October 9, 2007 Share Posted October 9, 2007 something like this maybe? http://demos.mootools.net/Fx.Scroll Link to comment https://forums.phpfreaks.com/topic/71646-smooth-scrolling/#findComment-365655 Share on other sites More sharing options...
cursed Posted October 16, 2007 Share Posted October 16, 2007 You could of used google (javascript smooth scrolling) and look, 3rd result: http://www.dezinerfolio.com/2007/08/08/df-javascript-smooth-scroll/ Link to comment https://forums.phpfreaks.com/topic/71646-smooth-scrolling/#findComment-371116 Share on other sites More sharing options...
karldesign Posted October 31, 2007 Author Share Posted October 31, 2007 I have searched Google many times, and all these solutions are great for single page movements... I have that working. The problem is smooth scrolling to on a new page: ie: I click www.somelink.com/index.php#anchor the link reloads the page to somelink.com/index.php and THEN i want the page to smooth scroll to that anchor... Link to comment https://forums.phpfreaks.com/topic/71646-smooth-scrolling/#findComment-381941 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.