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: 16 days ago
JSON representation

A funny way to interact with the mouse

Lists

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 at

http://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.