swiper-do-swipe.js v0.6
This software is for touch-screen web apps, and Phonegap-style apps, that want swiping and scrolling with 'pages' arranged like this
Page1 you are here |
Page2 |
Page3 |
Page4 |
It supports Android, mobile Firefox, and iOS.
Demo
Swipe the page left or right, or up and down, with touch or mouse.
And choose a page effect if you want it
Features
- • it's fast (using requestAnimationFrame, fast click, reduced GPU texture size during swipe, and other optimisations)
- • live animation feedback during swipe (not just a 'completed swipe' animation like jQuery Mobile et al)
- • designed to be extensible with other swipe animations
- • has callback for page turning that you can tie into your mobile app
- • no dependencies
Also it works around some significant Android bugs to do with scrolling and swiping (1, 2).
Usage
var swiper = swiper_do_swipe(
$("section"),
swiper_do_swipe_effects.perspective
);
var callback = function(event, $page, index){
console.log(event, $page, index);
}
swiper.onchange(callback).oninit(callback);
Source
on Github
Filler content
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- showing that click events still work.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.
- more content to show scrolling.