Book Section
-----
TY JavaScript 3rd Ed.
Teach Yourself JS 1.5
Teach Yourself DHTML
Teach Yourself JS 1.3
LLWW: JavaScript

General Section
-----
Discussion Forum
Articles / Tips
JavaScript Links
About the Author
Privacy Policy
Contact Me



Other Sites
-----
Website Workshop
JavaScript Weblog

JavaScript Workshop Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Smooth scroll with & without JavaScript

 
Post new topic   Reply to topic    JSWorkshop Forum Index -> JavaScript
View previous topic :: View next topic  
Author Message
lantiqo
New member
New member


Joined: 24 Jun 2012
Posts: 9
Location: Stockholm

PostPosted: Sun Jun 24, 2012 9:37 am    Post subject: Smooth scroll with & without JavaScript Reply with quote

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/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    JSWorkshop Forum Index -> JavaScript All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
(c) 1997-2002 Starling Technologies and Michael Moncur. Portions (c) Sams Publishing.