Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Swipe can take an optional second parameter – an object of key/value settings:
| **speed** | Integer | 300 | speed of prev and next transitions in milliseconds. |
| **auto** | Integer | 0 | when specified, start an auto-playing slideshow (time in milliseconds between slide change). |
| **continuous** | Boolean | true | create an infinite feel with no endpoints. |
| **partial** | Boolean or Number | false | to show the previous and next slides partially. Either you can pass as `true` or any number in the between `.01` to `.19` |
| **autoRestart** | Boolean | false | auto restart slideshow after user's touch event or next/prev calls. |
| **disableScroll** | Boolean | false | prevent any touch events on this container from scrolling the page. |
| **stopPropagation** | Boolean | false | stop event propagation. |
Expand Down
2 changes: 1 addition & 1 deletion build/swipe.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h2>License</h2>
</footer>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/lyfeyaj/swipe/swipe.js"></script>
<script src="../swipe.js"></script>
<script>

// pure JS
Expand All @@ -176,7 +176,8 @@ <h2>License</h2>
auto: 3000,
draggable: true,
autoRestart: false,
continuous: true,
continuous: false,
partial: true,
disableScroll: true,
stopPropagation: true,
callback: function(index, element) {},
Expand Down
2 changes: 1 addition & 1 deletion docs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ header, footer {
margin: 0; }
.swipe-wrap > div b {
display: block;
margin: 0 1.5em;
margin: 0 .8em;
padding: 4em 1em;
font-size: 2em;
text-align: center; }
Expand Down
Loading