🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Vibr is a super tiny jQuery plugin used to create configurable vibration (shake) effects on any Html elements using jQuery animation functions.

shake

Documentation

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

You May Also Like