Line 3: | Line 3: | ||
<style> | <style> | ||
#sideMenu, #top_title {display:none;} | #sideMenu, #top_title {display:none;} | ||
− | #content { padding:0px; | + | #content { padding:0px; margin-top:-7px; margin-left:0px;} |
body {background-color:white; } | body {background-color:white; } | ||
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; } | #bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; } |
Revision as of 15:02, 16 September 2016
SCROLLIFY
Power steering for your scroll wheel
A jQuery plugin that assists scrolling and smoothly snaps to sections.
Fully configurable and optimised for touch.
Basic Setup
Scrollify requires jQuery 1.6+ and an easing library such as jquery.easing.js.
<! doctype html> <html> <head> <script> $(function() { $.scrollify({ section : "section", }); }); </script> </head> <body> <section></section> <section></section> </body> </html>
Configuration
$.scrollify({ section : "section", sectionName : "section-name", easing: "easeOutExpo", scrollSpeed: 1100, offset : 0, scrollbars: true, before:function() {}, after:function() {} });
Methods
The move method can be used to scroll to a particular section. This can take the index of the section, or the name of the section preceded by a hash.
$.scrollify("move","#name");