Permalink
Comparing changes
Open a pull request
7
contributors
Commits on Apr 09, 2015
Commits on Apr 28, 2015
Commits on May 20, 2015
- Minor change related with pp-scrollable
Commits on Jun 12, 2015
Per bower/spec@a325da3 Also their maintainer says they probably won't ever use it: http://stackoverflow.com/questions/24844901/bowers-bower-json-file-version-property
Remove moot `version` property from bower.json
Commits on Jan 14, 2016
Commits on Feb 23, 2016
- Fixed bug when scrolling with an Apple trackpad #87 - Improved scrolling detection so it won’t scroll when scrolling horizontally on Apple trackpads. - Improved scrolling to prevent double scroll when scrolling very fast on Apple trackpad or kinetic scrolling devices - Improved comments so they won’t get deleted on minification.
Commits on May 04, 2016
Commits on Jul 07, 2016
- Added package.json file - Added gitignore - Improved credits in CSS and JS files
Commits on Aug 26, 2016
Commits on Jan 18, 2017
Commits on Jan 23, 2017
The badge will show the version on CDNJS, and it is added after the "including file" section.
Add CDNJS version badge in README.md
Commits on Apr 17, 2017
Commits on Apr 18, 2017
Fix broken headings in Markdown files
Commits on Mar 07, 2018
Commits on Aug 07, 2018
Fix the section1 vertical overflow issue in example videoBackground.
Commits on Jan 24, 2019
Commits on Jan 28, 2019
Commits on Jan 29, 2019
Fixed flickering on firefox
Unified
Split
Showing
with
4,327 additions
and 413 deletions.
- +1 −0 .gitattributes
- +3 −0 .gitignore
- +23 −7 README.md
- +0 −1 bower.json
- +131 −0 dist/jquery.pagepiling.css
- +976 −0 dist/jquery.pagepiling.js
- +9 −0 dist/jquery.pagepiling.min.css
- +1 −0 dist/jquery.pagepiling.min.css.map
- +10 −0 dist/jquery.pagepiling.min.js
- +1 −0 dist/jquery.pagepiling.min.js.map
- +322 −307 examples/examples.css
- +4 −0 examples/videoBackground.html
- +33 −0 gulpfile.js
- +10 −8 jquery.pagepiling.css
- +110 −65 jquery.pagepiling.js
- +6 −25 jquery.pagepiling.min.js
- +2,650 −0 package-lock.json
- +37 −0 package.json
@@ -0,0 +1 @@ | ||
examples/* linguist-vendored |
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
bower_components/ | ||
/node_modules |
@@ -1,10 +1,13 @@ | ||
# pagePiling.js | ||
|
||
 | ||
 | ||
\ | ||
Pile your sections one over another and access them scrolling or by URL! | ||
|
||
 | ||
|
||
- [Live demo](http://alvarotrigo.com/pagePiling/) | ||
- [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/) | ||
- [Who is using it](https://github.com/alvarotrigo/pagePiling.js#who-is-using-pagepilingjs) | ||
|
||
Invite me to a coffee | ||
@@ -24,6 +27,10 @@ It works with browsers with CSS3 support and with the ones which don't have it, | ||
|
||
It is also designed to work on touch devices such as mobile phones or tablets. | ||
|
||
[](http://www.browserstack.com/) | ||
|
||
Special thanks to [Browserstack](http://www.browserstack.com/) for supporting pagePiling.js. | ||
|
||
## Usage | ||
As 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. | ||
|
||
@@ -34,15 +41,18 @@ Terminal: | ||
bower install pagepiling.js | ||
``` | ||
|
||
###Including files: | ||
### Including files: | ||
```html | ||
<link rel="stylesheet" type="text/css" href="jquery.pagepiling.css" /> | ||
|
||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | ||
<script type="text/javascript" src="jquery.pagepiling.js"></script> | ||
``` | ||
|
||
###Required HTML structure | ||
### Optional use of CDN | ||
If you prefer to use a CDN to load the needed files, pagePiling.js is in CDNJS: https://cdnjs.com/libraries/pagePiling.js | ||
|
||
### Required HTML structure | ||
Each section will be defined with a `div` containing the `section` class. | ||
The active section by default will be the first section, which is taken as the home page. | ||
```html | ||
@@ -54,7 +64,7 @@ The active section by default will be the first section, which is taken as the h | ||
</div> | ||
``` | ||
|
||
###Initialization | ||
### Initialization | ||
All you need to do is call the plugin inside a `$(document).ready` function: | ||
|
||
```javascript | ||
@@ -231,7 +241,7 @@ $.fn.pagepiling.setScrollingSpeed(700); | ||
|
||
|
||
## Callbacks | ||
###afterLoad (`anchorLink`, `index`) | ||
### afterLoad (`anchorLink`, `index`) | ||
Callback fired once the sections have been loaded, after the scrolling has ended. | ||
Parameters: | ||
|
||
@@ -260,7 +270,7 @@ Example: | ||
}); | ||
``` | ||
|
||
###onLeave (`index`, `nextIndex`, `direction`) | ||
### onLeave (`index`, `nextIndex`, `direction`) | ||
This callback is fired once the user leaves a section, in the transition to the new section. | ||
|
||
Parameters: | ||
@@ -287,7 +297,7 @@ Example: | ||
``` | ||
|
||
|
||
###afterRender() | ||
### afterRender() | ||
This 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). | ||
|
||
Example: | ||
@@ -309,15 +319,21 @@ Example: | ||
If you want your page to be listed here. Please <a href="mailto:alvaro@alvarotrigo.com">contact me</a> with the URL. | ||
|
||
[](http://www.facebookgroups.com/) | ||
[](http://waltdisney.org/galleries) | ||
[](http://www.logitech.com/en-gb) | ||
|
||
- http://www.facebookgroups.com/ | ||
- http://waltdisney.org/galleries | ||
- http://www.logitech.com/en-gb | ||
- http://www.adigoodrich.com/ | ||
- https://number26.de/ | ||
- http://fngeats.com/ | ||
- http://ednahouse.org/statistics/ | ||
- http://sushi.steadfastlight.com/ | ||
- http://netstorage.com.br/nucs/nucs.html | ||
- http://aungthurhahein.me/ | ||
- http://mannydesigns.co | ||
- http://www.unwander.com/ | ||
|
||
## Donations | ||
Donations would be more than welcome :) | ||
@@ -1,6 +1,5 @@ | ||
{ | ||
"name": "pagePiling.js", | ||
"version": "1.5", | ||
"homepage": "https://github.com/alvarotrigo/pagePiling.js", | ||
"authors": [ | ||
"Alvaro Trigo https://github.com/alvarotrigo" | ||
@@ -0,0 +1,131 @@ | ||
/*! | ||
* pagepiling.js 1.5.6 | ||
* | ||
* https://github.com/alvarotrigo/pagePiling.js | ||
* @license MIT licensed | ||
* | ||
* Copyright (C) 2016 alvarotrigo.com - A project by Alvaro Trigo | ||
*/ | ||
html, body { | ||
overflow:hidden; | ||
margin:0; | ||
padding:0; | ||
|
||
/*Avoid flicker on slides transitions for mobile phones #336 */ | ||
-webkit-tap-highlight-color: rgba(0,0,0,0); | ||
} | ||
.pp-section { | ||
height:100%; | ||
position:absolute; | ||
width:100%; | ||
|
||
/* fixes flickering in firefox*/ | ||
backface-visibility: hidden; | ||
} | ||
.pp-easing { | ||
-webkit-transition: all 1000ms cubic-bezier(0.550, 0.085, 0.000, 0.990); | ||
-moz-transition: all 1000ms cubic-bezier(0.550, 0.085, 0.000, 0.990); | ||
-o-transition: all 1000ms cubic-bezier(0.550, 0.085, 0.000, 0.990); | ||
transition: all 1000ms cubic-bezier(0.550, 0.085, 0.000, 0.990); | ||
/* custom */ | ||
-webkit-transition-timing-function: cubic-bezier(0.550, 0.085, 0.000, 0.990); | ||
-moz-transition-timing-function: cubic-bezier(0.550, 0.085, 0.000, 0.990); | ||
-o-transition-timing-function: cubic-bezier(0.550, 0.085, 0.000, 0.990); | ||
transition-timing-function: cubic-bezier(0.550, 0.085, 0.000, 0.990); | ||
/* custom */ | ||
} | ||
#pp-nav { | ||
position: fixed; | ||
z-index: 100; | ||
margin-top: -32px; | ||
top: 50%; | ||
opacity: 1; | ||
} | ||
#pp-nav.right { | ||
right: 17px; | ||
} | ||
#pp-nav.left { | ||
left: 17px; | ||
} | ||
.pp-section.pp-table{ | ||
display: table; | ||
} | ||
.pp-tableCell { | ||
display: table-cell; | ||
vertical-align: middle; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
.pp-slidesNav{ | ||
position: absolute; | ||
z-index: 4; | ||
left: 50%; | ||
opacity: 1; | ||
} | ||
.pp-slidesNav.bottom { | ||
bottom: 17px; | ||
} | ||
.pp-slidesNav.top { | ||
top: 17px; | ||
} | ||
#pp-nav ul, | ||
.pp-slidesNav ul { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
#pp-nav li, | ||
.pp-slidesNav li { | ||
display: block; | ||
width: 14px; | ||
height: 13px; | ||
margin: 7px; | ||
position:relative; | ||
} | ||
.pp-slidesNav li { | ||
display: inline-block; | ||
} | ||
#pp-nav li a, | ||
.pp-slidesNav li a { | ||
display: block; | ||
position: relative; | ||
z-index: 1; | ||
width: 100%; | ||
height: 100%; | ||
cursor: pointer; | ||
text-decoration: none; | ||
} | ||
#pp-nav li .active span, | ||
.pp-slidesNav .active span { | ||
background: #333; | ||
} | ||
#pp-nav span, | ||
.pp-slidesNav span { | ||
top: 2px; | ||
left: 2px; | ||
width: 8px; | ||
height: 8px; | ||
border: 1px solid #000; | ||
background: rgba(0, 0, 0, 0); | ||
border-radius: 50%; | ||
position: absolute; | ||
z-index: 1; | ||
} | ||
.pp-tooltip { | ||
position: absolute; | ||
top: -2px; | ||
color: #fff; | ||
font-size: 14px; | ||
font-family: arial, helvetica, sans-serif; | ||
white-space: nowrap; | ||
max-width: 220px; | ||
} | ||
.pp-tooltip.right { | ||
right: 20px; | ||
} | ||
.pp-tooltip.left { | ||
left: 20px; | ||
} | ||
.pp-scrollable{ | ||
overflow-y: scroll; | ||
height: 100%; | ||
} |

Oops, something went wrong.