jQuery plugin for creating vibration effect
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
img
.gitignore
README.md
demo.html
jquery.vibr.js
jquery.vibr.min.js
vibr.jquery.json

README.md

Vibr

jQuery plugin creates vibration effect.

Usage

To use Vibr you just need to have jQuery (>= 1.5.x) and vibr loaded in your page:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="jquery.vibr.js"></script>

And call the function on your html element to add vibration effect

$('div.class').vibr();

Options

Vibr accepts an options like that:

$('div.class').vibr({
    h_spread: 5,
    v_spread: 2,
    speed: 50,
    delay: 3000
  });

Horisontal spread

integer (default: 3)

h_spread: 3

Vertical spread

integer (default: 1)

v_spread: 1

Speed of vibration

integer (default: 50)

speed: 50

Delay between vibrations

integer (default: 2000)

delay: 2000