Post by Nathan Lecompte on May 19, 2015 16:22:09 GMT 10
Smooth ScrollingDownload Source Code: Smooth Scrolling.zip (4.42 KB)Forum-Hosted Link: techviewforum.com/smooth.js (link offline, sorry about that)IntroductionThis will show you a simple script to create a smooth scrolling effect. This is especially handy when working with animations on scroll (eg: parallax). An example of this is...well, this forum. Try scrolling and comparing it to that of a website without smooth scrolling (please note that this is kind of pointless if you already have a plug-in or extension for your browser which adds smooth scrolling...still comes in handy for those who don't). Implementing the controlHosting it yourself:1. Download the smooth.js file and upload it to the server of your choice (eg: In the same place where your index.html file is stored). 2. Link to the smooth.js file from your server in your preferred page where you want smooth scrolling to function (eg: Your index.html file), like this: <script src="http://myserver.com/smooth.js"></script> Use the TechViewForum's hosting:1. Link to the smooth.js file from the TechViewForum ( techviewforum.com/smooth.js ) in your preferred page where you want smooth scrolling to function (eg: Your index.html file), like this: <script src="http://techviewforum.com/smooth.js"></script> Using the codeThat's it! No need for any extra coding! Simply link to the smooth.js file as shown above from the page where you want smooth scrolling to function. OverviewThis is a great little feature which can make your site seem smooth and fast. I hope you found this article interesting!
|
|
Post by Power Supersport on May 20, 2015 3:25:21 GMT 10
Thank you very much for sharing it...
|
|
Post by Prezence on Jun 23, 2016 6:14:36 GMT 10
|
|
Post by Prezence on Jun 24, 2016 2:31:56 GMT 10
Nathan Lecompte yeah it messed up the size of my full page splash :/ so i tried a different one. it was wierd
Check out our website here. Check out AirBrowse here. Follow us on GitHub here.
|
|