lantiqo New member

Joined: 24 Jun 2012 Posts: 9 Location: Stockholm
|
Posted: Sun Jun 24, 2012 9:37 am Post subject: Smooth scroll with & without JavaScript |
|
|
I want to get a fancy scroll to function even when JavaScript is not enabled in your browser. http://gravitysign.com/fancyscroll/horizontal#/ So if you press on the links so you end up at the correct position without animation.
javascript:
| Code: | window.onload = function(){
var fs=new fancyScroll({easingFunc: 'easeOutCubic',
easingTime: 1000,
deepLinking: true,
scrollMode: 'horizontal',
goTopText: 'Return'});
fs.addScroll(['sale','discount','new','contact']);
}; |
HTML:
| Code: | <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:
http://tympanus.net/Tutorials/WebsiteScrolling/ |
|