Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HcySunYang/finger-mover
π₯A motion effect library that integrates Fingerd and Moved
https://github.com/HcySunYang/finger-mover
Last synced: 4 months ago
JSON representation
π₯A motion effect library that integrates Fingerd and Moved
- Host: GitHub
- URL: https://github.com/HcySunYang/finger-mover
- Owner: HcySunYang
- Created: 2017-05-10T13:49:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-06T10:26:18.000Z (over 6 years ago)
- Last Synced: 2024-10-01T19:22:11.471Z (5 months ago)
- Language: JavaScript
- Homepage: https://fmover.hcysun.me
- Size: 221 KB
- Stars: 336
- Watchers: 9
- Forks: 43
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Intro
`finger-mover` is a motion effect library that integrates
[Fingerd (a development kit for finger unit event management in mobile development)](https://fmover.hcysun.me/#/package/fingerd)
and
[Moved (a micro movement framework)](https://fmover.hcysun.me/#/package/moved). `finger-mover` provides many useful plugins, such as [Vertical scroll simulation (simulation-scroll-y.js)](https://fmover.hcysun.me/#/plugins/simulation-scroll-y), [Horizontal scroll simulation (simulation-scroll-x.js)](https://fmover.hcysun.me/#/plugins/simulation-scroll-x) and so on.## Docs
[English](https://fmover.hcysun.me/#/home) β’ [δΈζζζ‘£](https://fmover.hcysun.me/#/zh-cn/)
## Features
* Just 11.12KB after compression
* Plugin support, motion components are available as plug-ins, thsi is a plug-in listοΌ
* [Vertical scroll simulation](https://fmover.hcysun.me/#/plugins/simulation-scroll-y)
* [Horizontal scroll simulation](https://fmover.hcysun.me/#/plugins/simulation-scroll-x)
* [2D scrolling](https://fmover.hcysun.me/#/plugins/2d-scroll)
* [Horizontal slide show](https://fmover.hcysun.me/#/plugins/fmover-slide-x)
* [Vertical slide show](https://fmover.hcysun.me/#/plugins/fmover-slide-y)## Install
#### NPM
```
npm install --save finger-mover
```#### yarn
```
yarn add 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 `` tag.
## Usage
```js
// 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()
]
})
```## package
###### [Fingerd](https://fmover.hcysun.me/#/package/fingerd)
> `Fingerd` is a development kit for finger unit event management in mobile development
###### [Moved](https://fmover.hcysun.me/#/package/moved)
> `Moved` is a micro movement framework.
## Contribution
Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.
## Credits
Thanks [Ri Xu](https://xuri.me) provides web hosting service and doc translation.
## License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2017 - 2018, HcySunYang