Socket
Socket
Sign inDemoInstall

swipe3d

Package Overview
Dependencies
67
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    swipe3d

Swipe/Slide/Scroll/Screen (touch device widgets like) events handling library. The purpose of the swipe3d is provide an advanced events handling.


Version published
Weekly downloads
7
increased by600%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Swipe/Slide/Scroll events library

The purpose of the swipe3d is provide an advanced events handling. Samples source code.

Swipe3d provides following components:

Installation

npm install swipe3d

Screen demo

Live demo

Usage
import {Screen, DIR} from 'swipe3d'

let mainScreen = new Screen(DOMElement, options)

options :

  • threshold int default 120
  • restraint int default 300
  • direction DIR default DIR.HORIZONTAL
  • mouse bool default true
  • mouseDelta int default 0
  • callback function run callback with number of screen as argument

Slide demo

Live demo

Usage
import {Slide, DIR, ACTION} from 'swipe3d'

let notificationArea = new Slide(DOMElement, options)

options :

  • threshold int default 150
  • restraint int default 100
  • direction DIR default DIR.BOTTOM
  • callback function run callback with ACTION as argument

Scroll demo

Live demo

Usage
import {Screen, DIR} from 'swipe3d'

let mainScreen = new Screen(DOMElement, options)

options :

  • threshold int default 150
  • restraint int default 300
  • direction DIR default DIR.HORIZONTAL
  • mouse bool default true
  • mouseDelta int default 50

Swipe

Usage
import {Swipe, DIR} from 'swipe3d'

let swipable = new Swipe(DOMElement, options)

options :

  • threshold int default 80
  • restraint int default 100
  • swipeTime int default 100
  • callback function run callback with DIR direction as argument

License

MIT (c) 2016 Svetlana Linuxenko

Keywords

FAQs

Last updated on 30 Sep 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc