The purpose of the swipe3d is provide an advanced events handling. Samples source code.
- Swipable Screen Component
- Swipe events handling
- Swipable Slide Component
- Swipable ScrollComponent
npm install swipe3d
Live demo
import {Screen, DIR} from 'swipe3d'
let mainScreen = new Screen(DOMElement, options)
options :
- threshold
int
default120
- restraint
int
default300
- direction
DIR
defaultDIR.HORIZONTAL
- mouse
bool
defaulttrue
- mouseDelta
int
default0
- callback
function
run callback with number of screen asargument
Live demo
import {Slide, DIR, ACTION} from 'swipe3d'
let notificationArea = new Slide(DOMElement, options)
options :
- threshold
int
default150
- restraint
int
default100
- direction
DIR
defaultDIR.BOTTOM
- callback
function
run callback withACTION
asargument
Live demo
import {Screen, DIR} from 'swipe3d'
let mainScreen = new Screen(DOMElement, options)
options :
- threshold
int
default150
- restraint
int
default300
- direction
DIR
defaultDIR.HORIZONTAL
- mouse
bool
defaulttrue
- mouseDelta
int
default50
import {Swipe, DIR} from 'swipe3d'
let swipable = new Swipe(DOMElement, options)
options :
- threshold
int
default80
- restraint
int
default100
- swipeTime
int
default100
- callback
function
run callback withDIR
direction asargument
MIT (c) 2016 Svetlana Linuxenko