Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LeonardoCardoso/Movement
A funny way to interact with the mouse
https://github.com/LeonardoCardoso/Movement
Last synced: 3 months ago
JSON representation
A funny way to interact with the mouse
- Host: GitHub
- URL: https://github.com/LeonardoCardoso/Movement
- Owner: LeonardoCardoso
- License: apache-2.0
- Created: 2015-01-18T22:42:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-13T14:01:47.000Z (about 8 years ago)
- Last Synced: 2024-06-08T01:35:42.837Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Movement
==========================Developed by @LeonardoCardoso.
## What is it?
A funny way to interact with the mouse. Good for Team showcase.
![Movement](http://i.imgur.com/YgCWvfU.gif)
## How to added to your project
1 • Scripts
```html
```2 • Configuration
Just create your own img tag (or multiple img tags) with width and height specified whether inline or in css and bind it to jQuery like this:
```html
$(document).ready(function() {
$('IMG ID').movement({
center: "img/center.jpg",
up: "img/up.jpg",
upRight: "img/upRight.jpg",
right: "img/right.jpg",
downRight: "img/downRight.jpg",
down: "img/down.jpg",
downLeft: "img/downLeft.jpg",
left: "img/left.jpg",
upLeft: "img/upLeft.jpg"
});
});
```
Note 1: All values are required or it won't work as you expect to.## Parameters
| option | default value | possible values |
|:-------------:|:-------------------:|:---------------:|
| center | img/center.jpg | any string |
| up | img/up.jpg | any string |
| upRight | img/upRight.jpg | any string |
| right | img/right.jpg | any string |
| downRight | img/downRight.jpg | any string |
| down | img/down.jpg | any string |
| downLeft | img/downLeft.jpg | any string |
| upLeft | img/upLeft.jpg | any string |Contact
=================================
Contact me either by Twitter [@leocardz](https://twitter.com/leocardz) or emailing me to [[email protected]](mailto:[email protected]).License
=================================Copyright 2015 Leonardo Cardoso
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.