{"_id":"pagepiling.js","_rev":"9-dcb6d30a28679d68d8a55d537342ee7e","name":"pagepiling.js","description":"Create a scrolling pile of sections","dist-tags":{"latest":"1.5.6"},"versions":{"1.5.2":{"name":"pagepiling.js","version":"1.5.2","description":"Create a scrolling pile of sections","main":"jquery.pagepiling.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/alvarotrigo/pagePiling.js.git"},"keywords":["jquery","scrolling","pile","sections","slides"],"authors":["Alvaro Trigo https://github.com/alvarotrigo"],"license":"MIT","bugs":{"url":"https://github.com/alvarotrigo/pagePiling.js/issues"},"homepage":"https://github.com/alvarotrigo/pagePiling.js#readme","namespace":"$.fn.pagepiling","devDependencies":{"gulp":"^3.9.0","gulp-clean-css":"^2.0.8","gulp-rename":"^1.2.2","gulp-sass":"^2.0.4","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.4.1"},"_id":"pagepiling.js@1.5.2","_shasum":"f107b9b034560be4792a716c33be18aec7cbe537","_from":".","_npmVersion":"2.8.4","_nodeVersion":"4.1.2","_npmUser":{"name":"alvarotrigo","email":"alvaro@alvarotrigo.com"},"maintainers":[{"name":"alvarotrigo","email":"alvaro@alvarotrigo.com"}],"dist":{"shasum":"f107b9b034560be4792a716c33be18aec7cbe537","tarball":"https://registry.npmjs.org/pagepiling.js/-/pagepiling.js-1.5.2.tgz","integrity":"sha512-nwGNcKLsqT+sdjTHS+Qi6H3zyLX5jlEF4WDCBT4HU9MKg8ydITo/EN33eiLickFN8CrBmYD/tFqmXtLMpwC0yA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICGroz7Irvk0648mNDwO4FbvGXULhrKQTzxt5mll63pxAiEA2/eVu4BfMxw7ERDzgOOD9nZlZtnKP5+meZjdD3YCoo0="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pagepiling.js-1.5.2.tgz_1467901391511_0.8630659393966198"},"directories":{}},"1.5.3":{"name":"pagepiling.js","version":"1.5.3","description":"Create a scrolling pile of sections","main":"jquery.pagepiling.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/alvarotrigo/pagePiling.js.git"},"keywords":["jquery","scrolling","pile","sections","slides"],"authors":["Alvaro Trigo https://github.com/alvarotrigo"],"license":"MIT","bugs":{"url":"https://github.com/alvarotrigo/pagePiling.js/issues"},"homepage":"https://github.com/alvarotrigo/pagePiling.js#readme","namespace":"$.fn.pagepiling","devDependencies":{"gulp":"^3.9.0","gulp-clean-css":"^2.0.8","gulp-rename":"^1.2.2","gulp-sass":"^2.0.4","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.4.1"},"_id":"pagepiling.js@1.5.3","_shasum":"daa5cd470afa129e0383aaa0201e13efb29e33ea","_from":".","_npmVersion":"2.8.4","_nodeVersion":"4.1.2","_npmUser":{"name":"alvarotrigo","email":"alvaro@alvarotrigo.com"},"maintainers":[{"name":"alvarotrigo","email":"atrigol@gmail.com"}],"dist":{"shasum":"daa5cd470afa129e0383aaa0201e13efb29e33ea","tarball":"https://registry.npmjs.org/pagepiling.js/-/pagepiling.js-1.5.3.tgz","integrity":"sha512-09AixicBJsJmSjsFKGoE4ksgw0r0Tc2xS7ekbSh75aDFxoiS5fCc5urKax2gLdxnqZbuOs7IVSVF851gTN/NgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEY9/+6BNdhssfkv2Qa+17VMUXm4QlFaCylUOr7LL3IsAiBj7Z2oduMuVQG4cicrdGhqZd80VPO6upbWVFtqdQr+eg=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pagepiling.js-1.5.3.tgz_1467901949032_0.09963560476899147"},"directories":{}},"1.5.4":{"name":"pagepiling.js","version":"1.5.4","description":"Create a scrolling pile of sections","main":"jquery.pagepiling.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/alvarotrigo/pagePiling.js.git"},"keywords":["jquery","scrolling","pile","sections","slides"],"authors":["Alvaro Trigo https://github.com/alvarotrigo"],"license":"MIT","bugs":{"url":"https://github.com/alvarotrigo/pagePiling.js/issues"},"homepage":"https://github.com/alvarotrigo/pagePiling.js#readme","namespace":"$.fn.pagepiling","devDependencies":{"gulp":"^3.9.0","gulp-clean-css":"^2.0.8","gulp-rename":"^1.2.2","gulp-sass":"^2.0.4","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.4.1"},"_id":"pagepiling.js@1.5.4","_shasum":"dc16fde18c01f0b58b937b10ec40cd26f95bfe85","_from":".","_npmVersion":"2.8.4","_nodeVersion":"4.1.2","_npmUser":{"name":"alvarotrigo","email":"alvaro@alvarotrigo.com"},"maintainers":[{"name":"alvarotrigo","email":"atrigol@gmail.com"}],"dist":{"shasum":"dc16fde18c01f0b58b937b10ec40cd26f95bfe85","tarball":"https://registry.npmjs.org/pagepiling.js/-/pagepiling.js-1.5.4.tgz","integrity":"sha512-G+gd/vkG/S4NfXbW1Vqer8vBx+70P3qPYnTgpsVSEzVNTToHlk1vrAE4x1vqUf9GVk9LsBungBBivAe1sIWG8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0qkGgHbFppYBtOMq16etgTM1AH0R5uGYk+cSvn1+0oAIgEXPU74+Tsp7twEwOG5UvQ3DKNTWnCveIyculjfwTNNI="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/pagepiling.js-1.5.4.tgz_1484742777614_0.3729107587132603"},"directories":{}},"1.5.5":{"name":"pagepiling.js","version":"1.5.5","description":"Create a scrolling pile of sections","main":"jquery.pagepiling.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/alvarotrigo/pagePiling.js.git"},"keywords":["jquery","scrolling","pile","sections","slides"],"authors":["Alvaro Trigo https://github.com/alvarotrigo"],"license":"MIT","bugs":{"url":"https://github.com/alvarotrigo/pagePiling.js/issues"},"homepage":"https://github.com/alvarotrigo/pagePiling.js#readme","namespace":"$.fn.pagepiling","devDependencies":{"gulp":"^3.9.0","gulp-clean-css":"^2.0.8","gulp-rename":"^1.2.2","gulp-sass":"^2.0.4","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.4.1"},"gitHead":"2841d87eafb4b7d28ff64b88dc49221ff5f4277c","_id":"pagepiling.js@1.5.5","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"alvarotrigo","email":"atrigol@gmail.com"},"dist":{"integrity":"sha512-0FaooG26j3HZr7zxM51PZ1UeKPTkXmCi+Jjgq00fz06zU45Yr5P4SHGbESJxZK9ZToP35px6jxS6vQf2B/TMog==","shasum":"5053b312496837cfe39a078a5f5f8397e3456393","tarball":"https://registry.npmjs.org/pagepiling.js/-/pagepiling.js-1.5.5.tgz","fileCount":33,"unpackedSize":2847393,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRWMqeIcP/5MvCXVTOJD4/YImae4rFS/YGjlaKTCUUzAiASVUpBiZUeDqllSJLKJrLzudx/O+uU5j9eukXWA07KCA=="}]},"maintainers":[{"name":"alvarotrigo","email":"atrigol@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pagepiling.js_1.5.5_1520433191799_0.8835963105084577"},"_hasShrinkwrap":false},"1.5.6":{"name":"pagepiling.js","version":"1.5.6","description":"Create a scrolling pile of sections","main":"jquery.pagepiling.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/alvarotrigo/pagePiling.js.git"},"keywords":["jquery","scrolling","pile","sections","slides"],"authors":["Alvaro Trigo https://github.com/alvarotrigo"],"license":"MIT","bugs":{"url":"https://github.com/alvarotrigo/pagePiling.js/issues"},"homepage":"https://github.com/alvarotrigo/pagePiling.js#readme","namespace":"$.fn.pagepiling","devDependencies":{"gulp":"^3.9.0","gulp-clean-css":"^2.0.8","gulp-rename":"^1.4.0","gulp-sass":"^2.0.4","gulp-sourcemaps":"^1.12.1","gulp-uglify":"^1.5.4"},"gitHead":"bfe5e73430c9cd0d217247265c80ff68e23b0415","_id":"pagepiling.js@1.5.6","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"alvarotrigo","email":"atrigol@gmail.com"},"dist":{"integrity":"sha512-FhiVFGrIOJ135YSDbfPamH+Llz9imQ0Z1K1lUxPiZHziXtOXgx74Jr44a+7IrSuqQxp1IYDhQoMN2pKmpG1kMQ==","shasum":"70744a6eab291de29c22c8b58e017ed9032e3abe","tarball":"https://registry.npmjs.org/pagepiling.js/-/pagepiling.js-1.5.6.tgz","fileCount":33,"unpackedSize":2848122,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUCjQCRA9TVsSAnZWagAASskP/R9MFJNjch+bTQrCgfID\nhyLjQLtt5fFoeF/tN0YDs7bzK0nDLLmqRtMtbSsMyXsZirAepGNYaIuKgVLl\nthTfIx3ItYlb1RO4BlX3OhRr1ZQJC1w1Z14/BI2OtfjmSZp7+of9hYhu1Njf\nfVJ+Z75Xeb7kc3AfLH1GnbdnO0WDmZ3uXpxpDYL4eB1tP2QZd6PKV7byKuzF\nDcC/Eb/fJwUtbaVKopC5bEeh20TnF2GOBt2RrbmPSpKeGX//3uWkm+2i3ufR\n5fHflh2kBwso2kfiySxIs0esY5c9032Nve9wIqiV/GK+Ua1lMvwLl8UCvDm9\ny6PUvjMJC9WeyihHenUiZr2ddEitVTi1Ot/eF7UDGmtzBcCdoAF2bCNu/D/Q\nlXVQow+sAE+jQBj3c99n8WULEPtstDcRi0unwxjqhwEqRJjbu1OmPjv/wFpb\nERJXFH0OywjeH69lSuN7rG++cK6l0jdVYkSQFYchMKWCoEwsG3lFKSZZ5MQi\ndkHL7iaTc1exPsF0RxF2NlA91EQDcsb7o1cETXee35tV4yqomkKcsKjDcqoZ\nScXisA6RPKBTdcYh+IQnn69sRZ2BtN71Yse3p3QJ5EqHnLJTLwt8HKFLtuW2\nG9uBRwCtpTKqDWSTJiJUdVLwZBgj1VEpiiF9xeoeOEJuPYaKtBYYw7/aif17\nmgri\r\n=c40C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4e6kO+wso7CPAYS3xLVGQbO0t794CKVhwcU1fu+OCQAIgL5i6HbokK5cvgHEY76xgVwOjkBY8czOHxSRjZ7bnug4="}]},"maintainers":[{"name":"alvarotrigo","email":"atrigol@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pagepiling.js_1.5.6_1548757198719_0.6567711895572645"},"_hasShrinkwrap":false}},"readme":"# pagePiling.js\n\n![preview](https://raw.github.com/alvarotrigo/pagePiling.js/master/examples/imgs/pagePiling-plugin.png)\n![compatibility](https://raw.github.com/alvarotrigo/pagePiling.js/master/examples/imgs/compatible.gif)\\\nPile your sections one over another and access them scrolling or by URL!\n\n![pagePiling.js version](http://img.shields.io/badge/fullPage.js-v1.5.6-brightgreen.svg)\n\n- [Live demo](http://alvarotrigo.com/pagePiling/)\n- [Creating hugeinc.com website with pagePiling.js](http://www.onextrapixel.com/2015/04/09/how-to-create-a-beautiful-fullscreen-single-scrolling-page-like-huge-inc/)\n- [Who is using it](https://github.com/alvarotrigo/pagePiling.js#who-is-using-pagepilingjs)\n\nInvite me to a coffee\n[![Donate](https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=BEK5JQCQMED4J&lc=GB&item_name=pagePiling%2ejs&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)\n\nCustomizations of the plugin available upon request for some reasonable price. <a href=\"http://alvarotrigo.com/#contact-page\">Contact me</a>.\n\nWould you like to have a website using pilePage.js functionality but you don't know how to use it? I can do it for you for a reasonable price. <a href=\"http://alvarotrigo.com/#contact-page\">Contact me</a>.\n\n## Introduction\nSuggestion are more than welcome, not only for feature requests but also for coding style improvements.\nLet's make this a great plugin to make people's lives easier!\n\n## Compatibility\npagePiling.js is fully functional on all modern browsers, as well as some old ones such as Internet Explorer 8, 9, Opera 12, etc.\nIt works with browsers with CSS3 support and with the ones which don't have it, making it ideal for old browsers compatibility.\n\nIt is also designed to work on touch devices such as mobile phones or tablets.\n\n[![Browserstack](http://wallpapers-for-ipad.com/fullpage/imgs3/logos/browserstack2.png)](http://www.browserstack.com/)\n\nSpecial thanks to [Browserstack](http://www.browserstack.com/) for supporting pagePiling.js.\n\n## Usage\nAs you can see in the example files, you will need to include the JavaScript file `jquery.pagepiling.js` (or the minified version `jquery.pagepiling.min.js`) and the css file `jquery.pagepiling.css` of the plugin, as well as [jQuery](http://jquery.com/). Optionally, you can add the [jQuery UI library](http://jqueryui.com/) in case you want to use other easing effects apart from the ones included in the jQuery library which are the `linear` or `swing` effects.\n\n### Install using bower:\nOptionally, you can install pagePiling.js with bower:\nTerminal:\n```shell\nbower install pagepiling.js\n```\n\n### Including files:\n```html\n<link rel=\"stylesheet\" type=\"text/css\" href=\"jquery.pagepiling.css\" />\n\n<script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"></script>\n<script type=\"text/javascript\" src=\"jquery.pagepiling.js\"></script>\n```\n\n### Optional use of CDN\nIf you prefer to use a CDN to load the needed files, pagePiling.js is in CDNJS: https://cdnjs.com/libraries/pagePiling.js\n\n### Required HTML structure\nEach section will be defined with a `div` containing the `section` class.\nThe active section by default will be the first section, which is taken as the home page.\n```html\n<div id=\"pagepiling\">\n\t<div class=\"section\">Some section</div>\n\t<div class=\"section\">Some section</div>\n\t<div class=\"section\">Some section</div>\n\t<div class=\"section\">Some section</div>\n</div>\n```\n\n### Initialization\nAll you need to do is call the plugin inside a `$(document).ready` function:\n\n```javascript\n$(document).ready(function() {\n\t$('#pagepiling').pagepiling();\n});\n```\n\nA more complex initialization with all options set could look like this:\n```javascript\n$(document).ready(function() {\n\t$('#pagepiling').pagepiling({\n\t    menu: null,\n        direction: 'vertical',\n        verticalCentered: true,\n        sectionsColor: [],\n        anchors: [],\n        scrollingSpeed: 700,\n        easing: 'swing',\n        loopBottom: false,\n        loopTop: false,\n        css3: true,\n        navigation: {\n            'textColor': '#000',\n            'bulletsColor': '#000',\n            'position': 'right',\n            'tooltips': ['section1', 'section2', 'section3', 'section4']\n        },\n       \tnormalScrollElements: null,\n        normalScrollElementTouchThreshold: 5,\n        touchSensitivity: 5,\n        keyboardScrolling: true,\n        sectionSelector: '.section',\n        animateAnchor: false,\n\n\t\t//events\n\t\tonLeave: function(index, nextIndex, direction){},\n\t\tafterLoad: function(anchorLink, index){},\n\t\tafterRender: function(){},\n\t});\n});\n```\n\n### Accesing sections\nIn order to create links to a certain section, you can use a normal URL link  if you are using pagePiling.js with anchor links (using the `anchors` option), then you will be able to use anchor links also to navigate directly to a certain section.\nFor example: http://alvarotrigo.com/pagePiling/#page2\n\n**Be careful!** `data-anchor` tags can not have the same value as any ID element on the site (or NAME element for IE).\n\n### Using a menu\nTo link the menu with the active section you will have to use the `menu` option and make use of anchor links (#) as explained below in the options section.\n\n### Creating a scrollable section\nIn case you want to have a section with large content and therefore create an scroll bar for that section, you can do it by adding the class `pp-scrollable` to that section:\n\n```html\n<div class=\"section pp-scrollable\"></div>\n```\n\n## Options\n\n- `verticalCentered`: (default `true`) Vertically centering of the content within sections.\n\n- `scrollingSpeed`: (default `700`) Speed in milliseconds for the scrolling transitions.\n\n- `sectionsColor`:(default `none`) Define the CSS `background-color` property for each section:\nExample:\n```javascript\n$('#pagepiling').pagepiling({\n    sectionsColor: ['#f2f2f2', '#4BBFC3', '#7BAABE', 'whitesmoke', '#000'],\n});\n```\n\n- `anchors`: (default `[]`) Defines the anchor links (#example) to be shown on the URL for each section. Using anchors forward and backward navigation will also be possible through the browser. This option also allows users to bookmark a specific section. **Be careful!** if you use anchors, they can not have the same value as any ID element on the site (or NAME element for IE).\n\n**Important** It is helpful to understand that the values in the `anchors` option array correlate directly to the element with the class of `.section` by it's position in the markup.\n\n- `easing`: (default `swing`) Defines the transition effect to use for the vertical scrolling.\nIt requires [jQuery UI](http://jqueryui.com/) in order to use any other transition other than `swing` and `linear`. Other libraries could be used instead.\n\n- `loopTop`: (default `false`) Defines whether scrolling up in the first section should scroll to the last one or not.\n\n- `loopBottom`: (default `false`) Defines whether scrolling down in the last section should scroll to the first one or not.\n\n- `css3`: (default `true`). Defines wheter to use JavaScript or CSS3 transforms to scroll within sections. Useful to speed up the movement in tablet and mobile devices with browsers supporting CSS3. If this option is set to `true` and the browser doesn't support CSS3, a jQuery fallback will be used instead.\n\n- `normalScrollElements`: (default `null`) If you want to avoid the auto scroll when scrolling over some elements, this is the option you need to use. (useful for maps, scrolling divs etc.) It requires a string with the jQuery selectors for those elements. (For example: `normalScrollElements: '#element1, .element2'`)\n\n- `normalScrollElementTouchThreshold` : (default `5`) Defines the threshold for the number of hops up the html node tree pagePiling will test to see if `normalScrollElements` is a match to allow scrolling functionality on divs on a touch device. (For example: `normalScrollElementTouchThreshold: 3`)\n\n- `keyboardScrolling`: (default `true`) Defines if the content can be navigated using the keyboard\n\n- `touchSensitivity`: (default `5`) Defines a percentage of the browsers window width/height, and how far a swipe must measure for navigating to the next section.\n\n- `animateAnchor`: (default `true`) Defines whether the load of the site when given an anchor (#) will scroll with animation to its destination or will directly load on the given section.\n\n- `direction`: (default `vertical`) Defines if the scroll is vertical or horizontal.\n\n- `menu`: (default `false`) A selector can be used to specify the menu to link with the sections. This way the scrolling of the sections will activate the corresponding element in the menu using the class `active`.\nThis won't generate a menu but will just add the `active` class to the element in the given menu with the corresponding anchor links.\nIn order to link the elements of the menu with the sections, an HTML 5 data-tag (`data-menuanchor`) will be needed to use with the same anchor links as used within the sections. Example:\n```html\n<ul id=\"myMenu\">\n    <li data-menuanchor=\"firstPage\" class=\"active\"><a href=\"#firstPage\">First section</a></li>\n    <li data-menuanchor=\"secondPage\"><a href=\"#secondPage\">Second section</a></li>\n    <li data-menuanchor=\"thirdPage\"><a href=\"#thirdPage\">Third section</a></li>\n    <li data-menuanchor=\"fourthPage\"><a href=\"#fourthPage\">Fourth section</a></li>\n</ul>\n```\n```javascript\n$('#pagepiling').pagepiling({\n    anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'],\n    menu: '#myMenu'\n});\n```\n\n**Note:** the menu element should be placed outside the pagePiling wrapper in order to avoid problem when using `css3:true`. Otherwise it will be appended to the `body` by the plugin itself.\n\n- `navigation`: (default `false`) If set to `true`, it will show a navigation bar made up of small circles.\n\n- `sectionSelector`: (default `.section`) Defines the jQuery selector used for the plugin sections. It might need to be changed sometimes to avoid problem with other plugins using the same selectors as pagePiling.js..\n\n\n## Methods\n\n### moveSectionUp()\nScrolls one section up:\n```javascript\n$.fn.pagepiling.moveSectionUp();\n```\n\n### moveSectionDown()\nScrolls one section down:\n```javascript\n$.fn.pagepiling.moveSectionDown();\n```\n\n### moveTo(section)\nScrolls the page to the given section.\n```javascript\n/*Scrolling to the section with the anchor link `firstSection`  */\n$.fn.pagepiling.moveTo('firstSection');\n\n```\n\n```javascript\n//Scrolling to the 3rd section in the site\n$.fn.pagepiling.moveTo(3);\n\n//Which is the same as\n$.fn.pagepiling.moveTo(3);\n```\n\n### setAllowScrolling(boolean)\nAdds or remove the possibility of scrolling through sections by using the mouse wheel/trackpad or touch gestures (which is active by default).\n\n```javascript\n$.fn.pagepiling.setAllowScrolling(false);\n```\n\n### setKeyboardScrolling(boolean)\nAdds or remove the possibility of scrolling through sections by using the keyboard arrow keys (which is active by default).\n\n```javascript\n$.fn.pagepiling.setKeyboardScrolling(false);\n```\n\n### setScrollingSpeed(milliseconds)\nDefines the scrolling speed in milliseconds.\n\n```javascript\n$.fn.pagepiling.setScrollingSpeed(700);\n```\n\n\n## Callbacks\n### afterLoad (`anchorLink`, `index`)\nCallback fired once the sections have been loaded, after the scrolling has ended.\nParameters:\n\n- `anchorLink`: anchorLink corresponding to the section.\n- `index`: index of the section. Starting from 1.\n\nIn case of not having anchorLinks defined in the plugin the `index` parameter would be the only one to use.\n\nExample:\n\n```javascript\n\t$('#pagepiling').pagepiling({\n\t\tanchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'],\n\n\t\tafterLoad: function(anchorLink, index){\n\t\t\t//using index\n\t\t\tif(index == 3){\n\t\t\t\talert(\"Section 3 ended loading\");\n\t\t\t}\n\n\t\t\t//using anchorLink\n\t\t\tif(anchorLink == 'secondPage'){\n\t\t\t\talert(\"Section 2 ended loading\");\n\t\t\t}\n\t\t}\n\t});\n```\n\n### onLeave (`index`, `nextIndex`, `direction`)\nThis callback is fired once the user leaves a section, in the transition to the new section.\n\nParameters:\n\n- `index`: index of the leaving section. Starting from 1.\n- `nextIndex`: index of the destination section. Starting from 1.\n- `direction`: it will take the values `up` or `down` depending on the scrolling direction.\n\nExample:\n\n```javascript\n\t$('#pagepiling').pagepiling({\n\t\tonLeave: function(index, nextIndex, direction){\n\t\t\t//after leaving section 2\n\t\t\tif(index == 2 && direction =='down'){\n\t\t\t\talert(\"Going to section 3!\");\n\t\t\t}\n\n\t\t\telse if(index == 2 && direction == 'up'){\n\t\t\t\talert(\"Going to section 1!\");\n\t\t\t}\n\t\t}\n\t});\n```\n\n\n### afterRender()\nThis callback is fired just after the structure of the page is generated. This is the callback you want to use to initialize other plugins or fire any code which requires the document to be ready (as this plugin modifies the DOM to create the resulting structure).\n\nExample:\n\n```javascript\n\t$('#pagepiling').pagepiling({\n\t\tafterRender: function(){\n\t\t\talert(\"The resulting DOM structure is ready\");\n\t\t}\n\t});\n```\n\n## Resources\n\n[CSS Easing Animation Tool - Matthew Lein](http://matthewlein.com/ceaser/)\n\n\n## Who is using pagePiling.js\nIf you want your page to be listed here. Please <a href=\"mailto:alvaro@alvarotrigo.com\">contact me</a> with the URL.\n\n[![Facebook](http://wallpapers-for-ipad.com/fullpage/imgs3/logos/facebook-pagepiling.gif)](http://www.facebookgroups.com/)\n[![WaltDisney](http://wallpapers-for-ipad.com/fullpage/imgs3/logos/waltDisney.gif)](http://waltdisney.org/galleries)\n[![Logitech](http://wallpapers-for-ipad.com/fullpage/imgs3/logos/logitech.gif)](http://www.logitech.com/en-gb)\n\n- http://www.facebookgroups.com/\n- http://waltdisney.org/galleries\n- http://www.logitech.com/en-gb\n- http://www.adigoodrich.com/\n- https://number26.de/\n- http://fngeats.com/\n- http://ednahouse.org/statistics/\n- http://sushi.steadfastlight.com/\n- http://netstorage.com.br/nucs/nucs.html\n- http://aungthurhahein.me/\n- http://mannydesigns.co\n- http://www.unwander.com/\n\n## Donations\nDonations would be more than welcome :)\n\n[![Donate](https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=BEK5JQCQMED4J&lc=GB&item_name=pagePiling%2ejs&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)\n\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2014 Alvaro Trigo &lt;alvaro@alvarotrigo.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"alvarotrigo","email":"atrigol@gmail.com"}],"time":{"modified":"2022-06-23T07:51:15.855Z","created":"2016-07-07T14:23:16.154Z","1.5.2":"2016-07-07T14:23:16.154Z","1.5.3":"2016-07-07T14:32:33.108Z","1.5.4":"2017-01-18T12:32:58.417Z","1.5.5":"2018-03-07T14:33:11.965Z","1.5.6":"2019-01-29T10:19:59.033Z"},"homepage":"https://github.com/alvarotrigo/pagePiling.js#readme","keywords":["jquery","scrolling","pile","sections","slides"],"repository":{"type":"git","url":"git+ssh://git@github.com/alvarotrigo/pagePiling.js.git"},"bugs":{"url":"https://github.com/alvarotrigo/pagePiling.js/issues"},"license":"MIT","readmeFilename":"README.md","users":{"sirkinder":true}}