Giter Club home page Giter Club logo

finger-mover-docs's Introduction

finger-mover

Overview

finger-mover is a motion effect library that integrates Fingerd (a development kit for finger unit event management in mobile development) and Moved (a micro movement framework). finger-mover provides many useful plugins, such as Vertical scroll simulation (simulation-scroll-y.js), Horizontal scroll simulation (simulation-scroll-x.js) and so on.

Features

  • Just 11.12KB after compression

  • Plugin support, motion components are available as plug-ins and you can also develop your own plugin, reference Plugin Development Guide

Installation

npm install --save finger-mover

finger-mover released as a umd module. You can use it in any way for your favorite. You can get global variable Fmover by serving as <script> tag.

Getting Started

// Import finger-mover
import Fmover from 'finger-mover'
// Import vertical scroll simulation plugin simulation-scroll-y
import simulationScrollY from 'simulation-scroll-y'
// Import horizontal scroll simulation plugin simulation-scroll-x
import simulationScrollX from 'simulation-scroll-x'

// While using both simulation-scroll-y and simulation-scroll-x plugins to implement 2D scrolling
let fm = new Fmover({
    el: '#scroll-box',
    plugins: [
        simulationScrollX(),
        simulationScrollY()
    ]
})

Access the Plugin Object

Fmover can access the plugin object by the order of the plugin import. Take the above code as an example:

// fm[0] access the first plugin object `simulationScrollX`
// Call the instance method of the object
fm[0].scrollTo(-300, 1000)

Plugins List

Description: There are many scroll simulation lib on mobile device, such as: iscroll, xscroll, better-scroll and so on. Why do you should be know to simulation-scroll-y๏ผŸThe feature of simulation-scroll-y you should to know ใ€‚

Description: Use simulation-scroll-x simulat horizontal scroll on mobile device.

Description: You just need to use the vertical scrolling plugin simulation-scroll-y and horizontal scrolling plugin simulation-scroll-x at the same time to implement 2D scroll.

Description: Lightweight and simple horizontal slide show solution on mobile device.

Description: Lightweight and simple vertical slide show solution on mobile device.

Custom Plugins

You can develop your own plugin for finger-mover, reference Plugin Development Guide

Package

Fingerd is a development kit for finger unit event management in mobile development

Moved is a micro movement framework.

finger-mover-docs's People

Contributors

hcysunyang avatar linjs avatar xuri avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

linjs wwwk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.