Thursday 28 February 2013

scroll top

Anchor become a really useful tool when you have to link to somewhere in a page with thousands of words, this unfortunately happen too often in corporate website.

 Only problem is, an anchor is just plain bad in design, when a user click on a link he pretty much think he’s gonna go to another page, but in this case, he just jump down the content,


 this can be really disorienting, even for power users like us, when it is not clear if a link is an anchor and not a normal link. How to change this behavior? Well animate the scrollbar with a simple script,



it will slide down to your anchor target and your normal anchor will still work if JavaScript is turned off. ^ Scroll to Top