I want to get a fancy scroll to function even when JavaScript is not enabled in your browser. [URL unfurl="true"]http://gravitysign.com/fancyscroll/horizontal#/[/url] So if you press on the links you end up at the correct position without animation.
An example of one that works with & without javascript but not something I want to use:
[link tympanus.net/Tutorials/WebsiteScrolling/]tympanus.net/Tutorials/WebsiteScrolling/[/url]
JavaScript:
window.onload = function(){
var fs=new fancyScroll({easingFunc: 'easeOutCubic',
easingTime: 1000,
deepLinking: true,
scrollMode: 'horizontal',
goTopText: 'Return'});
fs.addScroll(['sale','discount','new','contact']);
};
HTML:
<a href="#/sale">Sale</a>
<a href="#/discount">Discount</a>
<a href="#/new">New</a>
<a href="#/contact">Contact us</a>
An example of one that works with & without javascript but not something I want to use:
[link tympanus.net/Tutorials/WebsiteScrolling/]tympanus.net/Tutorials/WebsiteScrolling/[/url]